Posted On: Nov 15, 2019
You can now set 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 DLQs are available now in all commercial AWS Regions. You are charged for Amazon SNS data transfer and Amazon SQS requests for using DLQs. For pricing details, see Amazon SNS pricing and Amazon SQS pricing.
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, AWS Lambda functions, HTTP endpoints, email addresses, and mobile devices (SMS text messages and mobile push notifications).
To learn more about Amazon SNS dead-letter queues, see the following:
- Designing Durable Serverless Apps with DLQs for Amazon SNS, Amazon SQS, AWS Lambda blog post
- Amazon SNS Dead-Letter Queues and Message Delivery Retries in the Amazon SNS Developer Guide
- Configuring an Amazon SNS Dead-Letter Queue for a Subscription tutorial
- SetSubscriptionAttributes, GetSubscriptionAttributes, and Subscribe API actions in the Amazon SNS API reference