SQS Dead Letter Queue
AWS SQS - Dead Letter QueueΒΆ
- If a consumer fails to process a message within the visibility timeout the message goes back to the queue.
- We can set a threshold of how many times a message can go back to the queue - it's called a "[[redrive policy]]"
- After the threshold is exceeded, the message goes into a [[dead letter queue]] (DLQ)
- We have to create a DLQ first and then designate it [[dead letter queue]]
- Make sure to process the messages in the DLQ before they expire.