0% found this document useful (0 votes)
2 views5 pages

SNS (Simple Notification Service)

Uploaded by

amen.poojara
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views5 pages

SNS (Simple Notification Service)

Uploaded by

amen.poojara
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

SNS(Simple Notification Service)

Amazon Simple Notification Service (SNS) is a fully managed messaging service


provided by Amazon Web Services (AWS). It enables you to send notifications and
messages to a large number of subscribers or endpoints, such as email addresses,
mobile devices, AWS Lambda functions, HTTP endpoints, and more.
1. Publish-Subscribe Messaging : SNS follows a publish-subscribe messaging
model, where publishers (senders) send messages to topics, and subscribers
(receivers) receive messages from those topics. Topics act as communication
channels that deliver messages to multiple subscribers simultaneously.

2. Multiple Delivery Protocols : SNS supports various delivery protocols,


including:
Email: Send notifications to email addresses.
SMS: Send text messages to mobile phone numbers.
Push Notifications: Send notifications to mobile devices via platforms like Apple Push
Notification Service (APNS) and Firebase Cloud Messaging (FCM).
HTTP/HTTPS: Send messages to HTTP/HTTPS endpoints, such as webhooks or API
endpoints.

3. AWS Lambda : Trigger AWS Lambda functions to execute code in response to


messages.
Flexible Message Filtering: SNS allows you to filter messages based on attributes,
allowing subscribers to receive only the messages that match specific criteria. This helps
reduce unnecessary message processing and improves efficiency.

4. Fanout and Multiplexing : With SNS, you can fan out messages to multiple
subscribers or endpoints simultaneously. This enables you to broadcast messages to a
large number of recipients without needing to manage multiple communication channels.

5. Reliable and Scalable : SNS is designed to be highly reliable and scalable, capable
of handling millions of messages per second. AWS manages the underlying
infrastructure, ensuring high availability and durability of your messages.
6. Message Attributes and Payloads : SNS supports message attributes and
payloads, allowing you to include metadata and custom data in your messages. This
enables you to pass additional information along with your notifications, such as
message type, timestamp, or context.

7. Integration with AWS Services : SNS seamlessly integrates with other AWS
services, such as Amazon S3, Amazon SQS, AWS Lambda, and Amazon CloudWatch.
You can use SNS to trigger actions, process events, and send notifications in response
to changes or events in your AWS environment.
How to use SNS
Navigate to SNS : Once logged in, go to the SNS service. You can find it under the
"Application Integration" section or by searching for "SNS" in the search bar.

Create a Topic :
Click on "Topics" in the left sidebar.
Click the "Create topic" button.
Provide a name for your topic and an optional display name.
Click "Create topic" to create your topic.

Subscribe Endpoints to the Topic :


After creating the topic, click on the topic name to open its details.
Click the "Create subscription" button.
Select the protocol for the endpoint you want to subscribe (e.g., email, SMS, HTTP,
Lambda, etc.).
Provide the required information based on the selected protocol (e.g., email address,
phone number, endpoint URL, Lambda function ARN, etc.).
Click "Create subscription" to subscribe the endpoint to the topic.
Publish Messages to the Topic :
Go back to the topic details page.
Click the "Publish message" button.
Enter the message subject and message body.
Optionally, you can add message attributes or configure message delivery options.
Click "Publish message" to send the message to all subscribed endpoints.

Manage Subscriptions:
You can manage subscriptions by clicking on the topic name and navigating to the
"Subscriptions" tab.
Here, you can view all subscribed endpoints and their statuses.
You can also add or remove subscriptions as needed.

Monitor Activity:
Use the SNS dashboard and CloudWatch metrics to monitor the activity andperformance
of your topics.
You can track metrics such as number of messages published, number of subscriptions,
and delivery rates.

You might also like