Setting up an SQS dead-letter queue with alarms, inspection and controlled redrive

The article explains that a dead-letter queue collects SQS messages that fail processing after a set number of receives, but only becomes useful with an alarm, safe inspection, and controlled redelivery. It uses the Serverless Framework to build a queue with a DLQ and two alarms, plus a script that inspects messages without deleting them. Redrives are performed with the StartMessageMoveTask API, which can be throttled, monitored, and cancelled. The author stresses aligning visibility timeout, maxReceiveCount, and retention, noting that standard queues count time spent in the source queue against DLQ retention.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in