Implementing AWS: Design, Build, and Manage your Infrastructure
by Yohan Wadia, Rowan Udell, Lucas Chan, Udita Gupta
Mapping Lambda with SNS
Just as we have an event mapping for DynamoDB, AWS also provides event mapping for SNS and Lambda's integration. Lambda functions can get triggered each time a new message is published to an existing SNS topic. When triggered, a Lambda function can be used to perform tasks such as reading contents of the message payload, processing it or even forwarding it to other AWS services that can use the SNS notification to perform some action. An important thing to note here, while using SNS event mappings, is that, SNS will invoke Lambda functions in an asynchronous manner. If Lambda was successfully able to process the SNS event, it will send a successful delivery status. In the case of errors, SNS will try and invoke the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access