Amazon Web Services – Simple Notification Service(SNS): Complete Setup,Pricing,Features
Last Updated :
04 Jan, 2025
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)
- Decoupling microservices and distributed systems: SNS is mostly to decouple microservices and distributed systems by providing that will allow them to communicate with each other asynchronously. Helps in improving the scalability and reliability of the systems.
- Sending notifications to users: SNS can be used to send notifications to users about events that occur in your applications. For example, you can use SNS to send users notifications when they receive a new message, when their account is updated, or when an event occurs that they have subscribed to.
- Sending alerts to operators: SNS can be used to send alerts to operators about problems that occur in your applications. For example, you can use SNS to send operators alerts when a server goes down or when an error occurs.
- Building serverless applications: SNS can be used to build serverless applications by providing a way for them to communicate with each other and to send and receive notifications.
Benefits Of Using (AWS) Amazon Simple Notification Service (SNS) SNS
- Scalability: AWS SNS is designed to handle a large number of messages, making it ideal for applications that need to send millions of notifications simultaneously.
- Real-time notifications: SNS ensures that messages are delivered in real-time to the subscribed endpoints, which is crucial for time-sensitive applications.
- Multiple protocols support: SNS supports various protocols such as HTTP, HTTPS, email, SMS, and even AWS Lambda functions, allowing flexibility in how messages are delivered.
- High availability and durability: Being a part of AWS infrastructure, SNS offers high availability and fault tolerance, ensuring message delivery even in the event of an infrastructure issue.
- Easy integration with other AWS services: SNS integrates seamlessly with other AWS services like S3, EC2, Lambda, and CloudWatch, enabling automation and alerting across the AWS ecosystem.
- Cost-effective: SNS follows a pay-as-you-go model, making it a cost-effective solution for sending notifications, with no upfront costs or long-term commitments.
Features (AWS) Amazon Simple Notification Service (SNS)
- Scalability: Simple Notification Service (SNS) had a capacity to handle millions of messages per second from thedifferent sources.
- Security: Simple Notification Service (SNS) is very secured and it also offers wide range of security offers.
- High Avalibility: Simple Notification Service (SNS) is designed to have more durability which ensures the message are delivered without any latency.
- Flexibily To Use: SNS supports a variety of transport protocols and can be used to send notifications to a variety of applications.
Amazon Simple Notification Service (SNS) Publishers And Subscribers
1. Publishers: Initiating Communication
They communicate with subscribers asynchronously by producing and sending a message to a topic (i.e. a logical access point and communication channel). They do not include a specific destination (e.g. – email ID) in each message instead, send a message to the topic. They only send messages to topics they have permission to publish. They simply publish messages to an SNS topic, and Amazon SNS handles the distribution to the appropriate subscribers.
- Topic: The topic acts as a communication channel that publishers send messages to.
- Seamless Distribution: Publishers can produce messages asynchronously without worrying about where or how the message is delivered.
- Examples of Publishers: Microservices, EC2 instances, or application components that need to send real-time updates or notifications.
2.Subscribers:Receiving and Acting on Messages
Subscribers like web servers, email addresses, Amazon SQS queues, and AWS Lambda functions receive the notification over one of the supported protocols like Amazon SQS, HTTP/S, email, SMS, Lambda) when they are subscribed to the topic. Amazon SNS matches the topic to a list of subscribers who have subscribed to that topic and delivers the message to each of those subscribers. Amazon SNS categorized into Application-to-application (A2A) or Application-to-person (A2P) subscribers.
- A2A Subscribers: These are services like Amazon SQS, AWS Lambda, and HTTPS endpoints that subscribe to a topic and process incoming messages automatically.
- Amazon SQS: Acts as a message queue, enabling decoupled and durable message storage.
- AWS Lambda: Processes events in real-time, executing code based on incoming messages.
- HTTPS: Web servers or services that receive messages through HTTP/S endpoints.
- A2P Subscribers: These include individual users who receive notifications via email, SMS, or push notifications.
- Email: Sends notifications via email to subscribers.
- Mobile text (SMS): Sends text alerts directly to users.
- Mobile push: Pushes notifications to mobile devices.
Below Is The Visual Representation of Publishers and Subscribers working.
Step-by-Step Processes To Create Amazon Simple Notification Service in (AWS)
1. Create Topic
Step 1: Go to the Amazon SNS dashboard. Click on Create Topic button.

2. Give Display Name
Step 2: Type in the name of the topic and description( optional )

3.Create Key And Value( Optional)
Step 3: Type in the key value of the tag which is completely optional. Click on create the topic.

4.Topic Created Successfully
Step 4: Congratulations!! The topic is created successfully.

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

6. Create subscription
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.

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

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

Difference Between (AWS) Amazon SNS vs SQS
|
Amazon SNS
|
Amazon SQS
|
|
Amazon Simple Notification Service (SNS) and Amazon Simple Queue Service (SQS) are both fully managed messaging services offered by Amazon Web Services (AWS).
|
Amazon SQS is a message queueing service that allows you to store messages temporarily before they are processed.
|
|
Read: Amazon SNS vs SQS
|
Amazon SNS Pricing
Amazon SNS pricing is dependent up on the type of tier your using as follows:
- Publish and publish batch requests: $0.30 per 1 million requests and $0.017 per GB of payload data.
- Subscription messages: $0.01 per 1 million messages and $0.001 per GB of payload data.
- Topic owner and subscription owner requests: $0.50 per 1 million requests.
Conclusion
Amazon Simple Notification Service (SNS) is a fully managed messaging service that makes it easy to send notifications to a large number of subscribers. Whether it’s application-to-application (A2A) messaging or application-to-person (A2P) notifications, SNS simplifies the process of distributing timely and scalable communications. With support for multiple protocols like SMS, email, HTTP/HTTPS, and integration with other AWS services, SNS provides a flexible, reliable, and cost-effective solution for broadcasting messages. Its ability to decouple applications and services, along with built-in security and delivery features, makes SNS an essential tool for modern, scalable cloud-based architectures
AWS Simple Notification Service (SNS) – FAQs
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.
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.
How does the publisher-subscriber model work in Amazon SNS?
In Amazon SNS, publishers send messages to a topic, which acts as a channel for communication. Subscribers, such as applications or individuals, subscribe to that topic to receive messages. Amazon SNS handles the message distribution based on the chosen delivery protocols like email, SMS, Lambda, or SQS.
How can I secure my Amazon SNS topics?
Amazon SNS allows you to secure your topics by using AWS Identity and Access Management (IAM) policies to control who can publish or subscribe to a topic. Additionally, you can use encryption (SSE-SNS) to protect sensitive data at rest.
Can I use Amazon SNS to send SMS messages globally?
Yes, Amazon SNS supports global SMS messaging, allowing you to send text messages to recipients in over 200 countries. You can configure message delivery settings, including sender ID and SMS type.
How does Amazon SNS integrate with AWS Lambda?
Amazon SNS can trigger AWS Lambda functions in real-time whenever a new message is published to an SNS topic. This enables you to run serverless workflows and automation based on incoming events or notifications.
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.
Similar Reads
Amazon Web Services - Simple Notification Service(SNS): Complete Setup,Pricing,Features
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 th
9 min read
Amazon Web Services - Simple Queue Service(SQS): Complete Setup,Pricing,Features
SQS enables web service applications that help to quickly and reliably queue messages. These messages have one component in their application that generates only when to be consumed by another component. Therefore, the queue is a temporary repository for messages and these messages are awaiting proc
10 min read
Amazon Web Services - Receive Customized Notification for a Specific AWS Service Event Types Trigger
Sometimes users need to receive an email response with a custom notification for a specific AWS service event type trigger. In this article we are going to look into how can you receive customized notifications using an input transformer in AWS CloudWatch. To do so follow the below steps: Step 1: Af
2 min read
Amazon Web Services - Amazon S3 Notifications to SNS
In this article, we will see how the Amazon S3 bucket publishes notifications to SNS topics on object creation events. An object that creates an event is of four types. They are Put, Post, Copy, Multipart Upload, Remove, Replicate and Restore. Thus, whenever any of the event occur in our S3 bucket,
3 min read
Amazon Web Services - Introduction to Simple Workflow Service
In this article, we are going to discuss one of the important aspects of Amazon AWS, which is called Amazon SWS or SWF. it stands for Amazon simple workflow services. It’s a part of Amazon Web Services (AWS). AWS a cloud provider server. Which provides services in areas like computing, storage, admi
8 min read
Amazon Web Services - Introduction to Elastic Transcoder Service
Amazon Elastic Transcoder is a cloud-based media transcoding service. It is intended to be a highly scalable, simple-to-use, and cost-effective way for developers and organizations to convert their media files from their original format into versions that can be played on devices such as smartphones
6 min read
How To Install AWS CLI - Amazon Simple Notification Service (SNS)?
Amazon Simple Notification Service (SNS) is used for the Application to Application (A2A) and Application to Person (A2P) communication. It provides developers with a highly scalable, flexible, and cost-effective capability to publish messages from an application and immediately deliver them to subs
2 min read
Amazon Web Services - Configuring Amazon S3 Event Notifications
The Amazon S3 notification feature enables you to receive notifications when a certain event occurs inside your bucket. To get notifications, first, add a notification configuration that reads the event you want Amazon S3 to publish and the destinations where Amazon S3 will send the notifications. T
5 min read
Making A Text2Speech Application In Android Using Amazon Web Services (AWS Polly)
A text-to-speech application is an application that converts text into life-like speech. In this project, we will be making use of Android Studio IDE for our front end and Amazon Web Services (AWS) as our back end. AWS provides a lot of services including AWS Polly which we will be using in this pro
8 min read
Amazon Web Services - Introduction to Solutions Constructs
This is an introductory article on AWS Solutions Constructs. If you're not familiar with solution constructs, in short, they're a set of reusable architecture components that allow you to create better infrastructure as code stacks and create them faster. Let's first talk about infrastructure as cod
4 min read
Amazon Web Services - Flexibility in EC2 Spot Instances
In this article, we are going to look into the key points to keep in mind while using an Amazon EC2 Spot Instances effectively with instance flexibility. Here we will try to answer the three key questions: Why is Instance Flexibility needed?How to manage Spot instance using EC2 Fleet for your enviro
4 min read
Amazon Web Services - Introduction to Elastic Cache
This article intends to make the readers aware of one of the core services of AWS or Amazon Web Services called the Amazon Elastic Cache. Amazon ElastiCache is a complete caching solution proposed by AWS. It elevates the overall data accessing the experience of a user because of its wide range of mu
5 min read
Machine Learing (ML) Services Offered By Amazon Web Services (AWS)
In today's rapidly evolving technologies, harnessing the power of cloud computing has become imperative for businesses striving to stay ahead. Among the many cloud computing platforms, AWS is the most used cloud computing platform. In this guide, I will make sure that you will understand what is AWS
10 min read
Amazon Web Services - Introduction to Amazon Lightsail
Amazon Light is an AWS service that provides the a gateway for simplified cloud hosting helping the AWS users. It act as a user-friendly cloud platform that is designed for easy hosting and management of virtual private servers (VPS). With the lightsail service users can quickly develop and manage t
9 min read
Amazon Web Services - Spot Rules in EC2 Spot Instances
In this article, we are going to walk through a few simple rules to follow when launching Amazon EC2 spot instances. Spot instances enable you to optimize costs on an AWS cloud and scale the throughput of your application up to 10 times for the same budget. To help users manage their Spot Instances,
4 min read
Amazon Web Services - Creating a User Pool in AWS Cognito
A User pool in AWS Cognito is a user directory, which helps users to sign in to your web or mobile app through AWS Cognito. Users can also sign in through other social platforms like Google, Facebook, Amazon, or Apple. It doesn't matter users can directly sign in or use a third-party authentication,
3 min read
Amazon Web Services - Introduction to EC2 Spot Instances
In this article, we will look into the process of profiling your applications and workloads to confirm if they can take advantage of Amazon EC2 spot instances. Spot instances are spare compute capacity available to you at steep discounts (often as much as 90% cheaper) compared to on-demand prices. T
8 min read
Amazon Web Services - Introduction to Amazon CloudWatch Synthetics
In this article, we will get an introduction to Amazon Cloudwatch Synthetics. With this feature, you can create different kinds of Canaries to continually verify your user experience even when you don't have traffic, monitor and test for unusual behavior, and trace issues to their source for faster
3 min read
Amazon Web Services (AWS) - Free Tier Account Set up
Amazon Web Service (AWS) is the world’s most comprehensive and broadly adopted cloud platform, offering over 200 fully featured services from data centers globally. Millions of customers, including the fastest-growing startups, largest enterprises, and leading government agencies, are using AWS to l
5 min read