[rabbitmq-discuss] Number of messages in a queue

Daniel McGreal daniel at redbite.com
Sun Mar 9 09:45:12 GMT 2014


http://www.rabbitmq.com/maxlength.html ?
I assume clients get a basic.reject from this.

On 6 Mar 2014, at 20:02, Sharath <sharathciddu at gmail.com> wrote:

> I am implementing a system where jobs are submitted to the RabbitMQ based 'work queue' and the workers pick the jobs. 
> 
> However when the number of jobs in the queue are more than a certain number, I want to stop accepting any job submissions. I was wondering if there is any way using which we can get the number of messages/jobs in the queue and could you let me know the complexity of that call.
> 
> One idea is to using queue declare with passive as true, but I am not sure if this is the most optimal way to do it.
> 
> -Sharath
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20140309/a97eabac/attachment.html>


More information about the rabbitmq-discuss mailing list