Hi Emile,<div><br></div><div>Thank you for the response, you mean producers can observer the�length�of the queue using one of the rabbitmqctl commands. Is there anything other way too.</div><div><br></div><div>Thanks,</div>
<div>Prashanth.<br><br><div class="gmail_quote">On Thu, Aug 16, 2012 at 6:16 PM, Emile Joubert <span dir="ltr">&lt;<a href="mailto:emile@rabbitmq.com" target="_blank">emile@rabbitmq.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<div class="im"><br>
On 16/08/12 21:49, Prashanth wrote:<br>
&gt; Is there a limit on number of messages a queue can hold, and after that<br>
&gt; threshold is reached reject the future messages.<br>
&gt; I know there is per-queue message TTL and Queue TTL. But this does not<br>
&gt; serve my requirements.<br>
<br>
</div>Other than the TTL options you mention, producers can also choose to<br>
observe the length of a queue and stop when it reaches a limit. There is<br>
no support for this is in the broker beyond reporting the length of the<br>
queue.<br>
<div class="im"><br>
&gt; And is there a way to tell the producer that queue has reached the<br>
&gt; threshold. Produce is transparent to this, but just want to ask the group.<br>
<br>
</div>It is difficult to communicate this to the publisher, because publishing<br>
is an asynchronous operation.<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
-Emile<br>
<br>
</font></span></blockquote></div><br></div>