4 ms·
You can publish to an SNS topic with an SQS queue subscribing to it and invoking your lambda. This provides durability and allows you to configure other nice th
by sakopov 4y ago
You can publish to an SNS topic with an SQS queue subscribing to it and invoking your lambda. This provides durability and allows you to configure other nice things like dead-lettering for any message that fails in lambda. You can survive some pretty massive outages with a setup like this. Oh and also, as of recently you can re-drive messages in your dead-letter queue to a source queue via SQS console.
- andrew_ 4y agoFairly certain that ability has been around a few years. I left that comment there for folks who didn't know that was possible, as going the SNS -> SQS -> Lambda route is what is most popular and most written about.
- ysuhaas 4y agoI think the "new" feature is doing it via the console, instead of manually redriving the messages. Used it recently, great improvement: https://aws.amazon.com/blogs/aws/enhanced-dlq-management-sqs/ https://aws.amazon.com/blogs/aws/enhanced-dlq-management-sqs...