[rabbitmq-discuss] Can We Get the message again after delivering to consumer.

Matthew Sackman matthew at lshift.net
Fri Jan 15 12:36:28 GMT 2010


On Fri, Jan 15, 2010 at 12:04:54PM +0530, bennet xavier wrote:
> if message is delivered to consumer and consumer failed to save/operate that
> message.
> is it possible by a consumer to tell the rabbitMQ server only after the
> intimation delete from the server.
> My Problem:
> after i receive the message, i have to do some DB operation, if DB operation
> fails, i have to do the same operation with same message again.
> if i can retain the message in server, it will be easy for me.

If you are manually acking messages then the server will not forget
about the message until it has received the ack from you. If you fail to
ack a message and the client closes the channel or connection then the
message will be redelivered elsewhere.

RabbitMQ does not implement basic.reject so you can not use that to
explicitly ask the server to resend the message to some other consumer.


More information about the rabbitmq-discuss mailing list