AWS Lambda services work to deploy and manage applications without the hassle of managing and maintaining the underlying resources. AWS Lambda functions can also be used to process Amazon Simple Notification Service (Amazon SNS) notifications.
Amazon Simple Notification Service (SNS) is a well-constructed service that processes messages using a publish/subscribe model. Amazon SNS supports Lambda functions as a target for messages sent to a topic. You can subscribe your Lambda function to topics to receive notifications.
Amazon SNS calls your function asynchronously with an event that contains a message and metadata.
The following is the high-level architecture diagram of how to process SNS notifications using AWS lambda.