Posted On: Jan 16, 2020
You can now designate a dead-letter queue (DLQ) to an Amazon Simple Notification Service (SNS) subscription to capture undeliverable messages. Amazon SNS DLQs make your application more resilient and durable by storing messages in case your subscription endpoint becomes unreachable.
Amazon SNS DLQs are standard Amazon SQS queues. To receive notifications when undeliverable messages are moved to a DLQ, you can set up Amazon CloudWatch alarms. You can also analyze Amazon CloudWatch logs to troubleshoot message delivery failures more effectively.
Amazon SNS is a fully managed pub/sub messaging service. You can use Amazon SNS topics to decouple message publishers and subscribers, and simultaneously distribute messages to multiple endpoints, such as Amazon SQS queues, Amazon Lambda functions, and HTTP endpoints.
To learn more about Amazon SNS dead-letter queues, see the following:
• Designing Durable Serverless Apps with DLQs for Amazon SNS, Amazon SQS, Amazon Lambda blog post
• Amazon SNS Dead-Letter Queues and Message Delivery Retries in the Amazon SNS Developer Guide
• SetSubscriptionAttributes, GetSubscriptionAttributes, and Subscribe API actions in the Amazon SNS API reference