Messaging and Queuing


Monolithic application

Applications are made of multiple components. The components communicate with each other to transmit data, fulfill requests, and keep the application running.

Microservices

The application components are loosely coupled.


Amazon Simple Notification Service (Amazon SNS) is a publish/subscribe service. Using Amazon SNS topics, a publisher publishes messages to subscribers.

AmazonSNS.png

In Amazon SNS, subscribers can be web servers, email addresses, AWS Lambda functions, or several other options.


Amazon Simple Queue Service (Amazon SQS) is a message queuing service.

AmazonSQS.png

Using Amazon SQS, you can send, store, and receive messages between software components, without losing messages or requiring other services to be available. In Amazon SQS, an application sends messages into a queue. A user or service retrieves a message from the queue, processes it, and then deletes it from the queue.