[rabbitmq-discuss] Error queue handling

Emile Joubert emile at rabbitmq.com
Mon Apr 29 15:17:25 BST 2013


Hi,

On 29/04/13 10:01, rmuhzin at gmail.com wrote:
> I'm using rabbitmq as my amqp broker. I have main queue with a dead
> letter policy. Is there any way for me to queue the messages from my
> dead letter queue to main queue. This is not supposed to be a manual
> process in case we want to re process the messages. I'm php-amqp lib .

This is not recommended, because it might cause a cycle. If a message
finds itself routed to a queue where it has already been due to
dead-letter handling then it will get dropped. You will see a message in
the logfile to this effect.

It is not clear what value you will get from dead-lettering by
automatically requeuing to the main queue. Dead-lettering is supposed to
be a last resort in case of exceptional circumstances. If you are not
dealing with an exceptional condition then design your message flow
accordingly.



-Emile












More information about the rabbitmq-discuss mailing list