Amazon Simple Notification Service (Amazon SNS)
Cloud service · AWS · Updated

Amazon Simple Notification Service (Amazon SNS)

In short

Amazon Simple Notification Service (Amazon SNS) is a fully managed messaging service for both application-to-application (A2A) and application-to-person (A2P) communication, enabling the delivery of messages or notifications to subscribers or other applications.

Cloud Services Hub →

12 key features of Amazon Simple Notification Service (Amazon SNS)

Amazon Simple Notification Service (Amazon SNS) is a fully managed messaging service for both application-to-application (A2A) and application-to-person (A2P) communication, offering high throughput, automatic scaling, and support for multiple protocols and endpoints.

01
Publish/Subscribe (Pub/Sub) Messaging

Amazon SNS is a fully managed messaging service for both system-to-system and app-to-app communication. The pub/sub messaging framework enables decoupling of microservices, distributed systems, and serverless applications.

02
Flexible Message Delivery over Multiple Protocols

SNS supports multiple subscriber types including Amazon SQS, AWS Lambda functions, HTTP/S webhooks, SMS messages, email, and mobile notifications, enabling a wide range of messaging scenarios.

03
High Throughput and Scalability

Amazon SNS can handle high volumes of messages and dynamically scales with your application or system's activity to accommodate sending spikes without provisioning extra resources.

04
Fanout Messaging Pattern

Enables a message published to a topic to be delivered to multiple endpoints, making it simple to send a single message to multiple recipients for real-time updates.

05
Message Filtering

Subscribers can filter messages sent to topics by specifying attribute values, allowing them to receive only the messages of interest, reducing unnecessary network traffic and processing.

06
Encryption in Transit and At Rest

Messages are encrypted in transit and can also be encrypted at rest, ensuring that sensitive data is protected and compliant with security policies.

07
Access Control and Compliance

Amazon SNS integrates with AWS Identity and Access Management (IAM), allowing granular control over who can publish or subscribe to topics. Compliance with standards such as HIPAA, GDPR is supported.

08
Cost-Effective

With a pay-as-you-go pricing model, you only pay for what you use without upfront costs, making it a cost-effective solution for startups to large enterprises.

09
Message Durability and Dead-Letter Queues

SNS stores published messages across geographically separated servers and data centers, retries delivery when an endpoint is unavailable, and supports dead-letter queues to preserve messages not delivered before retries end.

10
Message Attributes

Message attributes let publishers attach arbitrary metadata to a message.

11
Batch Publishing

PublishBatch supports up to 10 message entries in a single request.

12
Direct Mobile Push Publishing

Mobile push messages can be published directly to an endpoint without subscribing that endpoint to a topic.

Where Amazon Simple Notification Service (Amazon SNS) is used

Amazon SNS is used for building and integrating scalable, high-speed messaging systems for notifications, mobile push messaging, and application-to-application (A2A) communication.

  1. 01
    User Notification System

    Implementing a system where users can subscribe to receive alerts or notifications about certain events or actions. This can be useful in applications where timely information delivery is crucial, such as bank transaction alerts, flight delay notices, or promotional offers.

  2. 02
    System Monitoring Alerts

    Enabling real-time notifications to be sent to administrators or support teams when certain thresholds or error conditions are met within system infrastructure. This can be critical for maintaining the health and availability of online services or applications, by promptly addressing issues as they arise.

  3. 03
    IoT Devices Communication

    Facilitating the communication between Internet of Things (IoT) devices and applications. By leveraging SNS, devices can publish messages to a topic that multiple subscribers can listen to, enabling diverse scenarios like home automation systems, where devices can react to changes in the environment or user commands.

  4. 04
    Microservices Architecture Coordination

    Supporting the decoupled nature of microservices architecture by acting as a message broker between services. This ensures that services can publish and subscribe to events or commands without being directly dependent on each other, thereby enhancing the modularity and scalability of the system.

  5. 05
    Time-sensitive Information Broadcasting

    Delivering urgent or time-sensitive information to a large number of recipients. For instance, emergency alerts during natural disasters, security incidents, or other critical events can be quickly disseminated to affected or interested parties, ensuring widespread awareness and prompt action.

  6. 06
    Application Workflow Triggers

    Automating processes or workflows in response to certain events by using SNS as a trigger mechanism. For example, in a content management system, an upload of a new document could trigger notifications to content reviewers, or in an e-commerce system, a successful payment might trigger order processing workflows.

How Amazon Simple Notification Service (Amazon SNS) is priced

Amazon SNS pricing is primarily based on the number of messages published and delivered, with costs varying by notification type (SMS, email, HTTP, etc.) and destination region, and includes a free tier for certain types of notifications.

Pay-As-You-Go

Amazon SNS operates on a pay-as-you-go pricing model, where the cost is based on the number of requests, the size of the published messages, and the delivery of notifications to different endpoints such as HTTP, email, SMS, and mobile push notifications. Charges for SMS vary by destination, while mobile push notification charges are based on notification volume rather than the mobile platform.

Data Transfer

Data transferred into Amazon SNS is free. Transfers from SNS to Amazon SQS or AWS Lambda are charged at Internet Data Transfer rates, including within the same Region. Transfers between SNS and Amazon EC2 within one Region are free; cross-Region transfers between them incur Internet Data Transfer charges on both sides.

Free Tier

Amazon SNS includes monthly free allowances of 1 million requests, 100,000 HTTP notifications, and 1,000 email notifications. These allowances are not limited to the first year; charges apply for usage exceeding them.

FIFO Topics

FIFO topic pricing is based on published messages, subscription messages, and their respective payload data volumes. Subscription messages equal published messages multiplied by subscriptions, and both filtered and delivered messages count.

Message Filtering

Attribute-based filtering is free. Payload-based filtering is charged according to outbound payload data scanned for each subscription with an active filter policy, including both filtered and delivered messages.

Message Archiving and Replay

Message archiving and replay pricing depends on the amount of data stored and its storage duration.

Message Data Protection

Message data protection is charged according to the payload data scanned and the audit report data generated.

Extended Payload Storage

Using the Amazon SNS Extended Client Library with Standard topics incurs Amazon S3 charges for storage used to send message payloads.

AWS KMS

Using AWS KMS to manage server-side encryption keys for Standard or FIFO topics incurs AWS KMS charges.

Services Amazon Simple Notification Service (Amazon SNS) works with

Amazon S3Amazon S3

SNS can send messages when a specific event occurs in an S3 bucket, such as a new object creation or deletion.

AWS LambdaAWS Lambda

SNS can trigger Lambda functions to process messages published to a topic.

Amazon CloudWatchAmazon CloudWatch

SNS can send notifications when CloudWatch alarms are triggered, enabling automated monitoring and alerting.

Amazon API GatewayAmazon API Gateway

Amazon SNS can receive messages directly from API Gateway through an AWS service integration. A REST API method can publish request data to an SNS topic without an intermediary Lambda function.

Amazon AuroraAmazon Aurora

Amazon SNS delivers Aurora event notifications through RDS event subscriptions. Subscribers can receive alerts about cluster failovers, maintenance, backups, and other selected database events.

Amazon Aurora ServerlessAmazon Aurora Serverless

Amazon SNS can deliver supported Aurora Serverless database events through RDS event subscriptions. Notifications can inform operators about maintenance, availability changes, and other subscribed cluster events.

Amazon CloudFrontAmazon CloudFront

Amazon SNS delivers notifications from CloudWatch alarms monitoring CloudFront metrics. For example, an alarm can notify operators when a distribution's error rate exceeds a threshold.

Amazon CodeGuruAmazon CodeGuru

Amazon SNS can deliver anomaly notifications from CodeGuru Profiler. A profiling group can use an SNS notification channel to alert operators when anomalous application behavior is detected.

Amazon CognitoAmazon Cognito

Amazon SNS sends SMS messages for Cognito user pools, including verification codes, account-recovery messages, and SMS multifactor authentication codes. Cognito uses an IAM role that permits publishing these messages through SNS.

Alternatives to Amazon Simple Notification Service (Amazon SNS) in other clouds

Azure

Event Grid

Amazon SNS and Azure Event Grid are managed publish/subscribe services that route messages or events to multiple subscribers and let each subscription filter what it receives. SNS pushes messages to subscribers and supports ordered delivery from FIFO topics to SQS FIFO queues; Event Grid offers HTTP push and Standard-tier HTTP pull, but does not guarantee ordering for HTTP delivery.

Compare fact by fact
Amazon Simple Notification Service (Amazon SNS)Event Grid
Topic deliveryPushPush; pull on Standard namespaces
Delivery orderingFIFO topics to SQS FIFO queuesNo ordering guarantee for HTTP
Billing modelUsage-basedBasic: usage; Standard: capacity + usage
Compared Nov 2026
Notification Hubs

Amazon SNS and Azure Notification Hubs both send mobile push notifications to audiences. Amazon SNS also delivers messages to endpoints such as email, SMS, and queues and uses pay-as-you-go pricing, while Azure Notification Hubs focuses on device push through platform providers and offers Free, Basic, and Standard namespace tiers.

Compare fact by fact
Amazon Simple Notification Service (Amazon SNS)Notification Hubs
Pricing modelPay-as-you-go with free allowancesNamespace tiers with push allowances
Audience targetingTopic subscriptions with filtersDevice tags and Boolean expressions
Service Bus

Amazon SNS and Azure Service Bus both offer managed publish-subscribe messaging to decouple distributed applications. Amazon SNS pushes messages to subscriber endpoints and can filter on message attributes or payloads, while Azure Service Bus receivers retrieve messages from subscription backlogs and subscription filters evaluate message properties only.

Compare fact by fact
Amazon Simple Notification Service (Amazon SNS)Service Bus
Topic deliveryPush to subscriber endpointsReceivers pull from subscriptions
Topic billingUsage-based, no base chargeStandard: base + usage; Premium: units
Subscription filtersMessage attributes or payloadMessage properties only
Ordered processingFIFO topics to SQS FIFO queuesSessions keyed by session ID
Compared Nov 2026

What is Amazon Simple Notification Service (Amazon SNS)

3 min read

Amazon Simple Notification Service (Amazon SNS) is a highly scalable, flexible, and cost-effective messaging service that enables the sending of messages or notifications from the cloud directly to users and systems. It is designed to facilitate the building and integration of distributed software systems and microservices by decoupling the components that produce events from those that process events, thereby enhancing scalability and reliability. 

Amazon SNS allows for the distribution of a wide range of messages, including system notifications, operational changes, error alerts, and user-triggered messages, making it an invaluable tool for developers looking to implement robust messaging capabilities within their applications. 

The service supports the delivery of messages to a large number of subscriber endpoints, including email addresses, SMS text messages, HTTP/HTTPS endpoints, and AWS Lambda functions, among others. This flexibility in delivery mechanisms makes it an excellent choice for applications that need to communicate with users across different channels and devices. Moreover, Amazon SNS is designed to handle high-throughput, bursty traffic patterns, ensuring that messages are delivered quickly and reliably, even during times of peak demand.

The default maximum message size is 256 KiB. A topic's MaximumMessageSize attribute can raise that limit to 1 MiB.

Topics configured with MaximumMessageSize above 256 KiB are limited to 100 total subscriptions and support only Amazon Data Firehose, Amazon SQS, and AWS Lambda endpoints.

For payloads larger than 1 MiB, the Amazon SNS Extended Client Libraries support payload sizes up to 2 GB.

One of the core features of Amazon SNS is its topic-based publish/subscribe mechanism. This feature allows messages to be published to "topics," which are logical access points and communication channels. Subscribers to a topic receive notifications when a message is published to that topic. This model simplifies the architecture of messaging systems by decoupling the message producers from consumers, allowing each to operate independently. It enables a single message to be efficiently distributed to multiple subscribers, facilitating broad and targeted communication scenarios. 

Payload-based message filtering scans outbound payload data for each subscription with an active filter policy.

Amazon SNS offers Standard and FIFO topics. FIFO topics can deliver ordered messages to Amazon SQS FIFO queues; they can also deliver to SQS standard queues when strict ordering is not required.

FIFO topics support a no-code, in-place message archive: topic owners can archive messages within a topic, and subscribers can replay archived messages to a subscribed endpoint.

FIFO topics also support high-throughput mode, with default throughput matching Standard topics across all Regions. In this mode, ordering is maintained within each message group and deduplication is scoped to the message group.

Amazon SNS also provides a range of capabilities designed to help maintain security and compliance of messaging operations. It supports the encryption of messages both in transit and at rest, ensuring that sensitive data is protected. Additionally, it integrates with AWS Identity and Access Management (IAM), allowing for granular control over who can publish or subscribe to messages on specific topics. This level of security feature integration helps organizations adhere to regulatory requirements and maintain high standards of data protection. 

Message data protection includes scanning and protecting messages during publishing and delivery, with blocking or de-identification and audit reporting.

Cost efficiency is another significant advantage of using Amazon SNS. There are no upfront costs, and users pay only for what they use, based on the number of messages published and delivered, and the data transfer incurred. This makes SNS a viable option for projects of any scale, from startups to large enterprises. 

In essence, Amazon SNS is a powerful, adaptable, and secure service that plays a critical role in enabling effective communication within distributed applications. Its ability to handle vast volumes of messages, support for multiple messaging patterns and protocols, stringent security features, and cost-effectiveness makes it an essential tool in the arsenal of modern software developers.

Amazon Simple Notification Service (Amazon SNS) exam questions

Real practice exam questions on Amazon Simple Notification Service (Amazon SNS), with the correct answer and its explanation. Answer them with every option in the exam simulator.

CLF-C02

A bank's payment application directly calls separate AWS Lambda functions for fraud analysis and rewards processing after each payment. The bank plans to add more processing functions over time. Every function must receive each payment message, but adding a function must not require changing the payment application's code or its list of recipients. Which design meets these requirements?

Show answerCORRECT ANSWER

Publish payment messages to one Amazon SNS topic and subscribe each processing function to that topic.

Amazon SNS distributes each published message to the topic's subscriptions. New functions can be subscribed without changing the payment application's code or making it maintain a recipient list.

SOA-C03

A company runs Amazon EC2 instances in us-west-2. Its operations team receives email through an existing unencrypted Amazon SNS standard topic in us-east-1. The team must receive notifications containing the instance ID whenever an instance in us-west-2 enters the stopped or terminated state.

The SNS subscriptions are confirmed, and the topic policy permits Amazon EventBridge to publish messages. The solution must use native instance state-change events without polling, custom code, or an additional SNS topic.

Which solution meets these requirements?

Show answerCORRECT ANSWER

Create an EventBridge rule on the default event bus in us-west-2 that matches EC2 instance state-change events with state stopped or terminated. Forward matching events to an event bus in us-east-1 by using an IAM role that permits events:PutEvents on that bus. Create a rule on the destination bus that matches the forwarded events and targets the SNS topic.

EventBridge supports an event bus in another Region as a rule target. The source rule filters the native EC2 events and forwards them with the required IAM permissions. The destination rule publishes to the SNS topic in its own Region. The native event includes the instance ID and state, so no custom code or polling is required.

SAP-C03

A company operates 12 production Amazon RDS DB instances that store independent customer data shards. An existing infrastructure-as-code pipeline manages monitoring resources for all instances. Each instance publishes the FreeStorageSpace metric to Amazon CloudWatch every minute, and no metric data is missing.

The operations team must receive a notification through an existing Amazon SNS topic when any individual DB instance has less than 20 GiB of free storage for three consecutive 1-minute evaluation periods. Low-storage observations from different instances must not combine to trigger a notification. An isolated low-storage observation must not trigger a notification.

Which configuration meets these requirements with the LEAST operational overhead?

Show answerCORRECT ANSWER

Use the existing pipeline to create an alarm for each DBInstanceIdentifier on AWS/RDS FreeStorageSpace. Configure the Minimum statistic, a 60-second period, a threshold of 21,474,836,480 bytes, LessThanThreshold, and 3 out of 3 evaluation periods. Configure the SNS topic as the ALARM action.

Each alarm monitors the storage metric for one specific DB instance. The threshold is 20 GiB expressed in bytes, and LessThanThreshold implements the required comparison. Three breaching datapoints out of three 60-second periods require three consecutive breaching periods. The existing pipeline automates deployment, and the SNS action provides notifications.

Practice Amazon Simple Notification Service (Amazon SNS) in a full exam

Questions on Amazon Simple Notification Service (Amazon SNS) in each practice exam, with every answer option and an explanation for each:

Start a free practice exam

Learn Amazon Simple Notification Service (Amazon SNS) in lessons

19 short lessons on Amazon Simple Notification Service (Amazon SNS) in 7 certification courses.

and 13 more lessons

Open the lessons

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.