[rabbitmq-discuss] [RUBY-AMQP GEM] How do we can retry publish message on errors?

Michael Klishin mklishin at gopivotal.com
Mon Apr 28 14:08:47 BST 2014


 On 28 April 2014 at 17:05:09, Loganathan Sellapa (loganathan.ms at gmail.com) wrote:
> > 1. How can I identify the message along with the message contents  
> for which didn't get the acknowledgement ?

Channel keeps a counter of confirms:
https://github.com/ruby-amqp/amqp/blob/master/lib/amqp/channel.rb#L187

Outstanding messages can be stored and identified however you like.

> 2. While publishing the 10 messages, I received acknowledgement  
> for 5 messages only. I suspect RabbitMq sent acknowledgement  
> for multiple messages on 5 & 10, if so then how can we make sure that  
> the acknowledgement is meant for message 1,2,3,4 and 5 in "Received  
> basic_ack: multiple = #> @delivery_tag=5, @multiple=true>, delivery_tag = 5"

delivery_tag = 5, multiple = true means "all unacknowledged messages up to 5 (inclusive)"
--  
MK  

Software Engineer, Pivotal/RabbitMQ


More information about the rabbitmq-discuss mailing list