[rabbitmq-discuss] Retrieve N messages from queue?
Michael Klishin
mklishin at gopivotal.com
Sat May 3 03:18:39 BST 2014
On May 2, 2014 at 6:19:35 PM, Scott McFadden (scott.kendall.mcfadden at gmail.com) wrote:
> > Is it possible to look at the queue size in rabbit MQ from client
> code?
declare the queue (possibly with passive = true) and see message count on
the response (queue.declare-ok)
> Is it possible to pop multiple messages off the queue at
> the same time? I have a queue full of error messages that needs
> to periodically be emailed to a given list of people. Don't necessarily
> want to send an email for each message as the rate of errors could
> occasionally be quite high resulting in email spam and pressure
> on the mail server.
You can do the batching in the client or consume N times with basic.get, one by one.
--
MK
Software Engineer, Pivotal/RabbitMQ
More information about the rabbitmq-discuss
mailing list