node-amqp icon indicating copy to clipboard operation
node-amqp copied to clipboard

Check if queue is empty?

Open orcuna opened this issue 11 years ago • 6 comments

Is there any access to check queue size?

orcuna avatar Apr 28 '13 19:04 orcuna

+1

vishr avatar Jul 14 '13 07:07 vishr

Per amqp there should be atleast 2 ways to do, but according to node-amqp documention none of them are supported :( +1 for this request.

krootee avatar Aug 02 '13 21:08 krootee

+1 this is a must to add more workers if needed.

danielsantiago avatar Nov 04 '13 15:11 danielsantiago

Need the queue size too -- for monitoring: check if the queue grew too much. +1

ikr avatar Apr 28 '14 07:04 ikr

If you're using RabbitMQ, I recommend getting info about the queue via their HTTP API.

https://github.com/timisbusy/node-amqp-stats

beppu avatar Sep 09 '14 07:09 beppu

https://github.com/dropbox/amqp-coffee can do this

queue.messageCount(queueOptions, callback)

rabbit gives this information back during queue declaration.

barshow avatar Sep 09 '14 15:09 barshow