Dead Letter Exchange とは?
Dead letter exchange は、queue が拒否したり、期限切れになったり、retry 上限を超えたりしたメッセージを捕捉し、メインの経路から外す宛先です。破棄されたり永遠に再配信されたりする代わりに、これらのメッセージは後でレビューするために別の queue にルーティングされます。運用者はそれらを検査し、修正し、再処理できます。
なぜ重要か
Dead letter の宛先がないと、処理不能なメッセージは消えてしまうか、延々と retry して queue をブロックします。別に送ることでメインのフローを健全に保ち、失敗したメッセージを診断のために保存します。
関連ガイド
What Is a Poison Message?A poison message is one a consumer repeatedly fails to process, causing it to be redelivered over and over an…
What Is Message Acknowledgment?Message acknowledgment is the signal a consumer sends to confirm it has processed a message, telling the brok…
What Is a Visibility Timeout?A visibility timeout is the period after a message is received during which it is hidden from other consumers…