[rabbitmq-discuss] Push to back of Queue on NAck

Matthias Radestock matthias at rabbitmq.com
Sun Jul 28 16:09:51 BST 2013


Stefan,

On 28/07/13 15:45, Stefan Kaes wrote:
> The size of the x-death header attached to the message grows linearly
> with the number of dead lettering events.
>
> This is bad for performance, and in the worst case could crash rabbitmq
> with an out of memory error, if for some reason a message gets rejected
> a high number of times (or indefinitely).

Surely the TTL-induced delay will be high enough for this not to be a 
problem in practice. After all, the x-death header only takes up a few 
tens of bytes per entry.

Furthermore, surely you wouldn't want a message to get rejected 
indefinitely. At some point the app presumably will have to give up and 
either throw away the message or route it somewhere for manual 
intervention. The app can make that decision based on the length of the 
x-death header.

Matthias.


More information about the rabbitmq-discuss mailing list