[rabbitmq-discuss] Number of messages in a queue
daniel at redbite.com
Sun Mar 9 09:45:12 GMT 2014
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.
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rabbitmq-discuss