[rabbitmq-discuss] RabbitMQ as a reliable message queue

Matthias Radestock matthias at rabbitmq.com
Thu Jun 16 18:53:52 BST 2011


On 16/06/11 18:47, Jason J. W. Williams wrote:
> On Thu, Jun 16, 2011 at 2:14 AM, T-zex<tranzenziuzex at gmail.com>
> wrote:
>> Unexpected shut down of a process (power failure) will result in
>> "good" message being put to the end of the queue - a very
>> unexpected behaviour. In case of a "bad" message application should
>> decide that it is bad and what should be done with it - requeue
>> (unlikely) or get rid of it.
>
> Well technically you can do that already. If you don't want it
> requeued just consume it and toss it,

...or reject the message with basic.reject(requeue=false).

> if you want it requeued just recreate the channel.

...or reject the message with basic.reject(requeue=true).

> I'm not sure that a message in the process of being consumed when the
> broker dies is requeued to the back.

They are. But we have some work underway to change that.


Matthias.


More information about the rabbitmq-discuss mailing list