RabbitMQ Separate Rejected and Expired dead-lettered messages

153 Views Asked by At

Is there a way to deliver messages that have been deadlettered because they were rejected to a different queue than messages that have expired?

I can imagine building a service that reads the 'all dead' queue, parses the header xdeath reason and separates the messages by reason, posting them on different queues.

But is there also a way in RabbitMQ to do a similar thing?

(The use case: I want to process the expired messages by a superfast service to quickly reduce the backlog (for instance after we have a database failure). But the rejected messages need to be handled by a service with a lot of debug logging enabled.)

0

There are 0 best solutions below