You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by Jiri Krutil <ji...@krutil.com> on 2011/07/07 06:40:35 UTC

Sender capacity in C++ client

Hi

What is the meaning of 'capacity' of a Sender in the C++ messaging
client?

Does the client maintain a reply buffer of sent messages or is this
merely a limit for the number of in-doubt or unconfirmed messages?

Is this a client-only setting or does the broker see it as well?

What happens if the Sender capacity is full and I attempt to send
another message? Does the call block until some messages are confirmed
by the broker?

What is the default capacity?

Cheers
Jiri


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org


Re: Sender capacity in C++ client

Posted by Gordon Sim <gs...@redhat.com>.
On 07/07/2011 05:40 AM, Jiri Krutil wrote:
> What is the meaning of 'capacity' of a Sender in the C++ messaging
> client?

It is the maximum number of buffered messages held by the sender.

> Does the client maintain a reply buffer of sent messages or is this
> merely a limit for the number of in-doubt or unconfirmed messages?

Yes to both, the in-doubt messages are held in a buffer whose size is 
controlled by capacity. These are the messages that are replayed if 
reconnect is enabled. Messages are removed from the buffer once 
confirmation is received that they have been successfully transferred.

> Is this a client-only setting or does the broker see it as well?

It is client only.

> What happens if the Sender capacity is full and I attempt to send
> another message? Does the call block until some messages are confirmed
> by the broker?

Yes, the call will block until space is freed up by the broker 
confirming messages.

This can at present indirectly used to flow control the producer. The 
c++ broker will delay sending confirmations for messages above a 
configured threshold on a queue.

> What is the default capacity?

The default at present is 50.

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org