Introduction
Sometimes messages in a queue cannot be processed. Dead letter exchanges and queues help catch these messages so they are not lost and can be inspected or retried later.
When a message is rejected or expired and you want to keep it for later analysis.
When your application cannot process certain messages and you want to separate them from normal traffic.
When you want to track messages that failed to be delivered after several attempts.
When you want to avoid losing messages that cause errors in your system.
When you want to debug why some messages are not processed correctly.