What is AWS SNS (Simple Notification Service)? SNS Messages

 

 

What is Amazon_SNS (Simple Notification Service)?

SNS is a highly available, durable, secure, and fully managed pub/sub messaging service that enables isolation of microservices, etc.


Implement push-type collaborative processing and notification functions
The following is a list of the most common applications for this function.

SNS is a
mechanism for sending and receiving messages repeatedly between applications and components.
The SNS can be used as a

SNS supports pub-sub, and when a message is sent (publish) to an SNS topic, the message is simultaneously distributed to subscribers who have subscribed to the topic.

 

 

Amazon SNS allows applications to use a "push" mechanism to send timing-critical messages to multiple subscribers.

This eliminates the need to periodically check or "poll" for updates.
eliminates the need to periodically check or "poll" for updates
.

Amazon SNS uses cross-availability zone message storage to provide superior message durability.

SNS is a cloud-native pub/sub messaging service unique to AWS.

Messaging is the primary role and SQS is used for worker processes.

 

Amazon SNS is a highly available, durable, secure, and fully managed pub/sub secure messaging service that enables isolation of microservices and more.

Used to implement push-type collaborative processing and notification functions.

 

https://aws.darcy-it.com/%e8%ab%8b%e6%b1%82%e3%82%a2%e3%83%a9%e3%83%bc%e3%83%a0%e3%81%ae%e8%a8%ad%e5%ae%9a%e6%89%8b%e9%a0%86/

Reference Site

 

SNS Features

You can use Amazon SNS to send SMS messages to SMS-enabled devices.

Messages can be issued directly to telephone numbers.

There is no need to subscribe the phone number to the Amazon SNS topic at that time.

By linking event triggers for data processing stoppages with SNS, notification can be made by immediately sending an e-mail triggered by the stoppage event.

SNS is a highly available, durable, secure, and fully managed pub/sub messaging service that enables isolation of microservices, etc.

Used to implement push-type collaborative processing and notification functions.

SNS can be used as a mechanism to repeatedly send and receive messages between applications and components.

SNS supports pub-sub, and when a message is sent (publish) to an SNS topic, the message is simultaneously distributed to subscribers who have subscribed to the topic.

 

use case

We are considering a method to achieve the linkage between the two components on AWS.

In this process, a message is notified that "data registration to the database from the customer" has been executed, and parallel processing is performed by the processing server using multiple EC2 instances.

Although there may be many requests for data registration from customers, it is good if one of the servers can handle the requests.

 

In this scenario, the requirement is to send a message notification that "data registration to the database from the customer" has been executed, and to start parallel processing by a processing server using multiple EC2 instances.

This requirement can be achieved by linking SNS and SQS.

The implementation triggers "data registration to the database from the customer" and sends a message to SQS by SNS. Next, SQS sends a queue to the EC2 server requesting data processing.

By using SQS, SNS event notifications can be polled so that they will definitely be processed once by one of the servers, and parallel processing can be initiated by the processing servers.

 

 

 

 

おすすめの記事