One message, two paths
How a retry policy controls whether and when processing is attempted again, while a dead-letter queue holds failed events outside the normal processing path rather than scheduling another attempt.
A retry policy governs whether and when work gets another attempt. A dead-letter queue (DLQ) holds failed work outside the normal processing path. Putting a message in a DLQ does not schedule another attempt.
In this example, order messages wait in Amazon SQS for an AWS Lambda function to process. The arrows show where the order message goes, not which service initiates the call: Lambda polls the source queue through an event source mapping.
Stage 1 of 4: An order message starts in the SQS source queue. While it is eligible for delivery, it can be picked up by a poller.
Next up: Trace a request on what you just read.
AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.