Closed silverdaz closed 6 months ago
You have an example implementation that can be almost mapped 1on1 to amqpstorm here as well. https://stackoverflow.com/questions/17014584/how-to-create-a-delayed-queue-in-rabbitmq
Closing it as the architecture around the message queues as changed
Description
When a message is rejected because another service is not available, we could send the message to a dead-letter exchange/queue and let it retry a few seconds later.
Proposed solution
There are several solution described here. This is not a new concept.
We can implement an exchange with a timeout, which requires a plugin insertion, or we can duplicate all the relevant queues with a dead-letter equivalent and set up the exchange routing keys accordingly. The latter is a bit more verbose, but nonetheless somehow standard.