node-amqp
node-amqp copied to clipboard
Check if queue is empty?
Is there any access to check queue size?
+1
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.
+1 this is a must to add more workers if needed.
Need the queue size too -- for monitoring: check if the queue grew too much. +1
If you're using RabbitMQ, I recommend getting info about the queue via their HTTP API.
https://github.com/timisbusy/node-amqp-stats
https://github.com/dropbox/amqp-coffee can do this
queue.messageCount(queueOptions, callback)
rabbit gives this information back during queue declaration.