2011/7/23 <span dir="ltr"><<a href="mailto:Lowell.Boggs@emc.com">Lowell.Boggs@emc.com</a>></span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
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?</blockquote></div><br>yes, and rabbitmq won't give your consumer 11th message until it receives an ack for at least one of the first 10.<br><br>Take a look at <a href="http://rubydoc.info/github/ruby-amqp/amqp/master/file/docs/Queues.textile#QoS___Prefetching_messages">http://rubydoc.info/github/ruby-amqp/amqp/master/file/docs/Queues.textile#QoS___Prefetching_messages</a>, it has an example<br>
of a few "apps" that share a queue, one of them "crashes" (its connection is closed) and messages it did not acknowledge are redelivered<br>to the peers.<br>-- <br>MK<br><br><a href="http://github.com/michaelklishin" target="_blank">http://github.com/michaelklishin</a><br>
<a href="http://twitter.com/michaelklishin" target="_blank">http://twitter.com/michaelklishin</a><br><br>