You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by RickW <ri...@in-deptheng.com> on 2009/03/30 21:11:36 UTC

Producer Side Flow Control

>From a client programmer's point of view, what does the broker setting --max-session-rate do? If a producer sends faster than the specified rate does it get an exception? Does it block?

Thanks,
Rick
-- 
View this message in context: http://n2.nabble.com/Producer-Side-Flow-Control-tp2559139p2559139.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.


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


Re: Producer Side Flow Control

Posted by Gordon Sim <gs...@redhat.com>.
RickW wrote:
> 
>> The broker will only issue the used credit to bring the issued credit 
> back to the max-session-rate for that interval. So the client will get 
> blocked from sending due to a lack of credit until the next interval 
> (rate is per second)
> 
> 
> Thanks!
> 
> Is there any way a client can tell if they would get blocked? In some cases I would prefer to not send the message if it would block my thread.

No, unfortunately there is not, but I can see that would be useful.

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


Re: Producer Side Flow Control

Posted by RickW <ri...@in-deptheng.com>.

> The broker will only issue the used credit to bring the issued credit 
back to the max-session-rate for that interval. So the client will get 
blocked from sending due to a lack of credit until the next interval 
(rate is per second)


Thanks!

Is there any way a client can tell if they would get blocked? In some cases I would prefer to not send the message if it would block my thread.

Rick
-- 
View this message in context: http://n2.nabble.com/Producer-Side-Flow-Control-tp2559139p2616449.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.


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


Re: Producer Side Flow Control

Posted by Carl Trieloff <cc...@redhat.com>.
RickW wrote:
> From a client programmer's point of view, what does the broker setting --max-session-rate do? If a producer sends faster than the specified rate does it get an exception? Does it block?

The broker will only issue the used credit to bring the issued credit 
back to the max-session-rate for that interval. So the client will get 
blocked from sending due to a lack of credit until the next interval 
(rate is per second)

regards
Carl.

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