Alternate Exchanges for Unroutable Messages
Learn how to attach an Alternate Exchange (AE) to capture messages that would otherwise be dropped because no binding matched, preventing silent message loss.
The Unroutable Message Problem
When a message reaches an exchange but matches no binding, RabbitMQ silently discards it (unless the publisher set the mandatory flag).
This silent loss is dangerous in production.
What Is an Alternate Exchange?
An Alternate Exchange (AE) is a fallback exchange. If the primary exchange cannot route a message, it forwards the message to its configured alternate exchange instead of dropping it.
All lessons in this course
- Headers Exchange in Depth
- Exchange-to-Exchange Bindings
- Dead Letter Exchanges (DLX)
- Alternate Exchanges for Unroutable Messages