Push-Based Notifications with Amazon SNS
Imagine a scenario where you have a shopping service that accepts requests from end customers for a particular product range it sells. Once the order has been placed, the application may need to send some form of notification to several application components, such as the shipping service, inventory management, the customer, and maybe even an SQS queue for additional processing. As depicted in Figure 15.10, this would also mean writing code for each of these processes in the application so that it can call the necessary APIs for each of those services.
Figure 15.10 – Customer ordering service
Amazon SNS is a fully managed publisher/subscriber (pub/sub) notification service that enables you to build your microservices architecture with ease. It uses a messaging framework that enables applications to push notifications to multiple subscribers through a single channel known as a topic, which can have one or...