Dead Letter Routing とは?
dead letter routing は、処理中に retry またはエイジのしきい値を超えたメッセージを、専用の dead letter queue へ送ります。これにより、そのままでは primary queue をブロックしたり無限に retry したりする poison message を隔離します。運用者は後から、キャプチャしたメッセージを調査・修正・再処理できます。
なぜ重要か
処理不能な一件のメッセージが、キューを停滞させたり、無限の retry ループでリソースを消費したりすることがあります。それを脇へ振り分けることで、失敗したメッセージを診断用に保存しつつ、メインの pipeline を流し続けられます。
関連ガイド
What Is a Retry Budget Policy?A retry budget policy caps the fraction of traffic that may be retries, preventing retry storms from overwhel…
What Is Idempotency Key Handling?Idempotency key handling uses a client-supplied unique token to ensure a retried request is processed at most…
What Is the Outbox Pattern?The outbox pattern writes events to a database table in the same transaction as the data change, then publish…