AWS Simple Notification Service (SNS) works based on push technology. It is also called a server push. In this mechanism, the message or transaction is initiated by the publisher or a central server and the AWS SNS delivers it to the subscribers. It is the opposite of the pull mechanism. The pull mechanism is also called a client pull, where the client raises a request to fetch or pull data from the server. As a side note, unlike SNS, AWS SQS works on a pull mechanism.
In enterprise architecture, we often need to send notifications to the subscribers. Some of the following real-time notification use cases can help us to understand how and where they are used:
- When an EC2 instance is under- or over-utilized for a specific time frame, it should send a notification to the system administrators and stack holders. For example, at any given time...