SNS - Simple Notification Service Flashcards
What is SNS?
Web service for sending notifications in the cloud
Allows you to publish messages from an application and deliver them to subscribers or applications
easy to use, pay as you go, no management
What is pub-sub?
SNS follows publish-subscribe method, “pushing” messages to clients
No need for polling
Compare SNS to SQS
SNS pushes messages
SQS clients pulls messages
What can SNS deliver messages to?
mobile, SMS, email, SQS, any HTTP endpoint
How does SNS prevent messages from being lost?
stores all messages redundantly across multiple AZ’s
What is an SNS Topic?
A way of grouping multiple recipient.
an “access point” for allowing recipients to subscribe to identical copies of the same information
One topic can deliver to multiple endpoint types like iOS, Android and SMS
Publish once to a topic, and SNS correctly formats message for each type of recipient
SNS Benefits
push based
easy integrations
flexible delivery over multiple protocols
cheap, pay as you go, no up front costs
AWS Console simplicity
SNS pricing
$2 per 100,000 notifications over email
75 cents per 100 SMS notifications
6 cents per 100,000 notifications over HTTP
50 cents per million SNS requests
SNS Data type
JSON