[rabbitmq-discuss] Cleaning up unhandled messages

Matthias Radestock matthias at rabbitmq.com
Fri Jan 21 19:02:34 GMT 2011


On 21/01/11 18:53, Jerry Kuch wrote:
> This method allows your consumer to, rather than basic.ack-ing a
> message that has been delivered to it, to sort of "anti-ACK" it,
> declaring that it can't be processed.  If you basic.reject a method
> with the 'requeue' parameter set to false, the message will be
> discarded rather than put back into the queue for future redelivery.

The eagle-eyed will spot that basic.reject{requeue=false} does exactly 
the same as basic.ack. The difference is one of declared intent. But 
that difference may become more significant, e.g. we have a feature on 
our todo list to add the ability to for the broker to re-publish 
rejected messages to a configurable "dead-letter" exchange.

Regards,

Matthias.


More information about the rabbitmq-discuss mailing list