What is AWS SNS

With AWS SNS, one can send messages or SMS to many recipients or applications in over 200 countries worldwide. Read on to know more about AWS SNS

What is AWS SNS
Photo by Yannik Mika / Unsplash

Are you wondering why so many businesses today use AWS SNS? With AWS SNS, one can send messages or SMS to many recipients or applications in over 200 countries worldwide. And like any other cloud-based service, there are no upfront fees - you only pay for what you use.

Read on to know more about AWS SNS.

Introduction to AWS SNS

Simple Notification Service (SNS) is a publish-subscribe system that offers push notification functionality for businesses and individuals. In simple terms, AWS SNS is a cloud service that delivers messages from publishers (producers) to subscribers (consumers). Publishers communicate with subscribers by sending topics/messages through an access point, while customers subscribe to the SNS topic and receive the published information.

Amazon SNS services can also relay messages to different platforms, like Apple, Google, and windows. All messages published to AWS SNS are stored continually across several availability zones to prevent them from being lost.

Who is a publisher? It is simply the creator and sender with the permission to create and send the message topics. A publisher is also the entity that sends the message, like a cloud watch alarm or any other application.

Who is a subscriber? A subscriber is the receiver of the subscribed message topics. AWS SNS offers 10 million subscriptions per topic.

What is a topic? It is the purpose of the message. Amazon SNS offers 100,000 topics per developer account.

How does AWS SNS work?

AWS SNS offers a cost-effective and scalable service that creates and publishes topics from one cloud-based application to another. Some of its futures include:

  • Pub-sub, in simple terms message publishing and processing service
  • Ability to Fanout to multiple subscribes
  • Autoscaling
  • Serverless
  • Ability to filter messages as per the subscription topic
  • Standard and FIFO topics.

Without further due, let us dive into how AWS SNS works:

  1. A developer first creates the topic that serves as an access point to their subscribers.
  2. Amazon SNS then sends the message to the subscribers immediately after receiving it from the publishing application. The SNS service entails:
    SNS topic- Filters out the messages to be sent to subscribers. A developer creates an SNS topic (access point) and sends it to subscribed clients.
    Message Filter- The message enters the filter after being decoupled into topics and sends it to customers based on their subscription plans.
  3. Subscribers receive the messages through their email address, URL address, or phone number listed when subscribing to the service. AWS SNS does this through subscription ques.

Here are some of the most common sent SNS messages:

Push email or text message- the medium used to send messages to individuals or groups. Examples include news updates sent to newspaper subscribers.

Mobile push notifications- are direct messages sent to mobile applications. It can be a notification about mobile app updates.

Application & System alerts- are automatic system updates sent to a user through Email or SMS.

What are the benefits of AWS SNS?

Amazon SNS has numerous benefits, like being a messaging service that can almost scale vastly and offer easy-to-use APIs.

By using SNS, you can decouple microservices and improve reliability. Here are other advantages of AWS SNS:

1. Prompt delivery. AWS SNS works through a push-based delivery. Once the developer publishes the message on a topic, Amazon SNS delivers the message to multiple subscribers worldwide.

2. Affordable. SNS services are affordable as it has no upfront fees, i.e., you only pay for what you use. In simple terms, the service works on a pay-as-you-go model.

3. Easy to use. The web-based AWS management console provides a point and clicks interface to its users. The service is easy to use.

4. Automatic scalability- Equipped with the AWS cloud platform, AWS SNS enables its users to scale the number of message requests from any application. Furthermore, Amazon SNS can change according to the messaging traffic patterns.

5. Flexible- AWS SNS supports multiple endpoint types. Subscribers can receive messages through numerous transport protocols like Email, Lambda, SMS, HTTP, Amazon SQS, etc.

6. Message filtering- Developers can simplify their overall messaging architecture by removing the message filter from subscribers and message routing from the publisher.

AWS SNS simplifies this process by allowing subscribers to select the specific messages they need instead of receiving all published SNS topics.

7. Secure- A publisher can set topic-related policies as per their preferences. You can also select some users or a specific user who can publish or subscribe to their topic. When using SNS, you can set an exact number of messages to send daily. Publishers can also encrypt private or transactional messages with one-time passwords or OTP.

How to create SNS in AWS

Step 1: Open the Amazon SNS dashboard and click on Create Topic button.


Step 2 (optional): Enter the topic's name, description, and other configuration parameters. Name and Type are the only required parameters.


Step 3: Topic is created.


Step 4: Navigate to Subscriptions page, and click Create Subscription


Step 5: Set the topic protocol as your Email and the endpoint of the topic as your email id. Click on create a subscription.


Step 6: Open your mailbox and click on Confirm subscription.



Using AWS SNS enables you to deliver the right messages to your subscribers/endpoint. You can easily access Amazon SNS through the publisher-subscriber model and enjoy scalable services for sending push messages to distributed systems, serverless applications, and microservices.