Send Fanout Event Notifications

with Amazon Simple Queue Service (SQS) and Amazon Simple Notification Service (SNS)

Introduction

In this tutorial, you will implement a fanout messaging scenario using Amazon Simple Notification Service (SNS) and Amazon Simple Queue Service (SQS). In this scenario, messages are "pushed" to multiple subscribers, which eliminates the need to periodically check or poll for updates and enables parallel asynchronous processing of the message by the subscribers.

To illustrate this, we will assume that you are developing a cloud-native application that sends an Amazon SNS message to a topic whenever an order is placed on an online store. The Amazon SQS queues that are subscribed to that topic will each receive identical notifications for the new order.

The AWS services you use in this tutorial are within the AWS Free Tier.

 Cost to Complete

Free Tier

 Services Used

Sending Fanout Event Notifications
on AWS Requires an Account

AWS Free Tier includes 1,000,000 publishes for Amazon Simple Notification Service and 1,000,000 requests of Amazon Simple Queue Service. 

View AWS Free Tier Details »

Implementation

Was this tutorial helpful?

Congratulations!

You have implemented a fanout scenario using Amazon SNS and Amazon SQS. You are now ready to use Amazon SNS and Amazon SQS together to deliver messages to applications that require immediate notification of an event, or to buffer messages in Amazon SQS queues for other applications to process later.