3 ms·
FWIW you can wire an SNS topic directly to a Lambda - But watch out for frequency rules around that setup. Too many posts to the SNS Topic and you'll run into r
by andrew_ 4y ago
FWIW you can wire an SNS topic directly to a Lambda - But watch out for frequency rules around that setup. Too many posts to the SNS Topic and you'll run into rate limits and dropped messages. (This is also why most suggest going to a queue first)
- sakopov 4y agoYou 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...