Poison Message とは?
Poison message は、consumer が処理しようとすると常にエラーを引き起こすメッセージで、決して ack されずに再配信され続けます。繰り返される失敗はリソースを無駄にし、その後ろにある他の作業をブロックします。システムは通常 retry 回数に上限を設け、その後 dead letter の宛先に移動させます。
なぜ重要か
1つの不正なまたは処理不能なメッセージが永遠に loop すると、queue 全体を停滞させ得ます。retry 上限と dead letter の送信先を組み合わせるとそれを分離し、残りのメッセージが流れ続けます。
関連ガイド
What Is a Dead Letter Exchange?A dead letter exchange receives messages that a queue cannot deliver or process, routing them aside for inspe…
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…