[rabbitmq-discuss] Reading messages without acking them

Michael Klishin michael.s.klishin at gmail.com
Fri Jul 22 22:40:39 BST 2011


2011/7/23 <Lowell.Boggs at emc.com>

> So, is it true then that if I set the prefetch number to  10, I can read up
> to 10 without acking any of them?


yes, and rabbitmq won't give your consumer 11th message until it receives an
ack for at least one of the first 10.

Take a look at
http://rubydoc.info/github/ruby-amqp/amqp/master/file/docs/Queues.textile#QoS___Prefetching_messages,
it has an example
of a few "apps" that share a queue, one of them "crashes" (its connection is
closed) and messages it did not acknowledge are redelivered
to the peers.
-- 
MK

http://github.com/michaelklishin
http://twitter.com/michaelklishin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20110723/b9632753/attachment.htm>


More information about the rabbitmq-discuss mailing list