SNS = Simple Notification Service
I am going to demonstrate how we can integrate Lambda function with Simple Notification Service.
SNS is a notification service provided as part of Amazon Web Services. It provides a low-cost infrastructure for the mass delivery of messages, predominantly to mobile users.
From the sender's viewpoint, SNS acts as a single message bus that can message to a variety of devices and platforms.
SNS can also deliver messages by SMS to 200+ countries.
It uses the publish/subscribe model for push delivery of messages.
In AWS SNS, there are two types of clients
- Publishers (Producers)
- Subscribers (Consumers)
An Amazon SNS topic is a logical access point that acts as a communication channel.
A topic lets you group multiple endpoints (such as AWS Lambda, Amazon SQS, HTTP/S, or an email address).
Subscribers (that is, web servers, email addresses, Amazon SQS queues, AWS Lambda functions) consume or receive the message or notification over one of the supported protocols (that is, Amazon SQS, HTTP/S, email, SMS, Lambda) when they are subscribed to the topic.