Simple Notification Service- SNSS Simple Notification Service- SNS is a web-service that coordinates and manages messages being sent to clients or endpoints that subscribe to the service.
SNS allows you to create Topics, which are a logical access point for communication.
Each topic is given a unique name which identifies the SNS endpoint that publishers can use to post messages or subscribers to register to receive notifications.
Producers and consumers communicate asynchronously by sending messages to subscribers.
Producers push messages on the topic they created or have access too. SNS matches the topic to subscribers and delivers the message each subscriber.
Subscribers receive all messages posted to the topics they subscribe to, and all subscribers to the topic receive the same messages.
Accessing Amazon SNS
Amazon Management consoleAmazon Management Console is a web-based user interface that can be used for managing SNS
AWS Command line Interface, (CLI)Provides commands to a wide range of AWS products and is supported on Windows, Mac and Linux.
AWS Tools for Windows PowershellProvides commands to access a wide range of AWS products for those who use PowerShell to script.
AWS SNS query APIQuery API allows you to make HTTPS or HTTPS requests using the HTTP verbs POST or GET and a Query parameter called Action
AWS SDK librariesAWS provides libraries in different languages that provide basic functions that automate tasks like cryptographically signing requests, retrying requests and handling errors.
HTTP, HTTPS – Subscribers can specify a URL in their subscription registration. Notifications will be sent via an HTTP POST to that URL.
Email, Email JSON – Messages sent to registered addresses are as email. Email-JSON sends messages as a JSON object while Email sends text-based emails.
SQS – Users can specify an SQS endpoint; SNS will enqueue a message to the specified queue. Subscribers can then process the notification message using SQS APIs like ReceiveMessage, DeleteMessage, and others.
SMS – SMS Text messages are sent to registered numbers via SMS text messagesSNS Supported Enpoints
Email NotificationsSNS allows you to send email notifications
Mobile Push NotificationsSNS allows you to send push notifications directly to mobile apps. Push notifications sent to a mobile device endpoint can be displayed in the mobile app as badge updates, message alerts, or sound alerts.
Supported push notification servicesAmazon device messaging (ADM)
Apple Push Notification Service (APNS).
Google Cloud Messaging (GCM)
Windows Push Notification Service (WNS), for Windows 8+ or Windows Phone 8.1+
Microsoft Push Notification Service (MPNS), for Windows Phone 7+
Baidu Cloud Push for Android devices in China
SQS QueuesSNS and SQS allows messages to be sent to applications that need immediate notification of an incident. These messages also persist in an SQS queue for later processing by other applications
SNS allows applications send time-critical messages through a “push” mechanism to multiple subscribers, eliminating the need for periodic checks or “polls” for updates.
Distributed applications can use SQS to exchange messages via a polling model. It can be used to decouple the sending and receiving components without each component having to be available simultaneously.
SMS NotificationsSNS allows you to send and receive SMS (Short Message Service) notifications to SMS-enabled smart phons and mobile phones.
