Open In App

Simple Notification Service (SNS) in AWS

Amazon Web Services Simple Notification Service (AWS SNS) is a web service that automates the process of sending notifications to the subscribers attached to it. SNS provides this service to both application-to-person and application-to-application. It uses the publishers/subscribers paradigm for the push and delivery of messages. The data loss is prevented by storing the data across multiple availability zones. It is cost-efficient and provides low-cost infrastructure, especially for mobile users. It sends the notifications through SMS or email to an Amazon Simple Queue Service (SQS), AWS lambda functions, or an HTTP endpoint. When the CPU utilization of an instance goes above 80%, the AWS cloudwatch alarm is triggered. This cloudwatch alarm activates the SNS topic hence notifying the subscribers about the high CPU utilization of the instance. SNS service has a topic that has a unique name. It acts as a logical access point and a communication channel between publishers and subscribers.  

How Does (AWS) Amazon Simple Notification Service (SNS) Work?

Simple Notification Service (SNS) sends the notifications through SMS or email to an Amazon Simple Queue Service (SQS), AWS lambda functions, or an HTTP endpoint. When the CPU utilization of an instance goes above 80%, the AWS cloudwatch alarm is triggered. This cloudwatch alarm activates the SNS topic hence notifying the subscribers about the high CPU utilization of the instance. SNS service has a topic that has a unique name. It acts as a logical access point and a communication channel between publishers and subscribers.  



Use cases Of (AWS) Amazon Simple Notification Services (SNS)

 Benefits Of Using (AWS) Amazon Simple Notification Service (SNS) SNS   

Features (AWS) Amazon Simple Notification Service (SNS)

Clients Of (AWS) Amazon Simple Notification Service (SNS)

Steps to Create Amazon Simple Notification Service  in (AWS)

Step 1: Go to the Amazon SNS dashboard. Click on Create Topic button.



Step 2: Type in the name of the topic and description( optional )

Step 3: Type in the key value of the tag which is completely optional. Click on create the topic.

Step 4: Congratulations!! The topic is created successfully.

Step 5: Go back to the SNS dashboard. The created topic is visible in the dashboard now. Click on the link to the topic. 

Step 6: You will be redirected to this page. Under subscription options, Click on Create subscription.

Step 7: Select the Protocol of the topic as Email and the endpoint of the topic as your email id. Click on Create Subscription.

Step 8: Now go to the mailbox of the mentioned email id and click on Confirm subscription.

Step 9: You will be directed to this page. Your subscription is confirmed.

Amazon SNS pricing

Amazon SNS pricing is dependent up on the type of tier your using as follows:

FAQs On AWS Simple Notification Service (SNS)

1. What Is The Mechanism Used By The Simple Notification Service SNS For Messaging?

Amazon Simple Notification Service (SNS) uses a publish-subscribe (pub/sub) messaging model. In this model, publishers send messages to topics, and subscribers receive messages from topics.

2. Is SNS A Message Broker?

Amazon Simple Notification Service (SNS) is a messaging service, but it is not a message broker. A message broker is a software application that acts as an intermediary between message producers and consumers.

3. AWS SNS Service

Amazon Simple Notification Service (Amazon SNS) is a fully managed messaging service for both application-to-application (A2A) and application-to-person (A2P) communication.

4. AWS SNS VS SQS

SNS: Amazon Simple Notification Service (SNS) and Amazon Simple Queue Service (SQS) are both fully managed messaging services offered by Amazon Web Services (AWS).

SQS: Amazon SQS is a message queueing service that allows you to store messages temporarily before they are processed.


Article Tags :