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

Michael Klishin mklishin at gopivotal.com
Mon Apr 28 11:30:34 BST 2014


On 28 April 2014 at 11:44:52, Loganathan Sellapa (loganathan.ms at gmail.com) wrote:
> > I would like to know how the error handling is done for "publish  
> message". I want to retry the publish message when some exception/failure  
> occurred on RabbitMq? I checked the examples on ruby amqp gem  
> but unable to find the proper example for republishing the message  
> on error.

http://www.rabbitmq.com/confirms.html
http://rubyamqp.info/articles/rabbitmq_extensions/ 
https://github.com/ruby-amqp/amqp/blob/master/examples/extensions/rabbitmq/publisher_confirmations_with_transient_messages.rb
--  
MK  

Software Engineer, Pivotal/RabbitMQ


More information about the rabbitmq-discuss mailing list