ExitAmazon SNS: Topic subscriptions and fan-out1 / 10
Explanationassociate10 steps · 5 exercises

Publish once, deliver to interested subscribers

How a standard topic delivers one publication to multiple subscribers, including how to confirm email subscriptions for operational alerts and use subscription filters to route messages to the right SQS queues.

An Amazon SNS standard topic gives a publisher one place to send a message. A subscription connects the topic to one destination, such as an email address or an SQS queue. SNS evaluates each subscription independently: one publication can reach several destinations without the publisher addressing them separately.

In this design, operations staff want both deployment completions and quota warnings. Each downstream application wants its own queue, with only the events it handles. Each queue keeps its own backlog, so reading from one queue does not remove messages from the other.

operational eventemail notificationdeployment.completed messagesquota.warning messages
Operational event publisherAWS Lambda
Standard topicAmazon Simple Notification Service (Amazon SNS)
Operations recipient (confirmed email, no filter)Users
Deployment queue (allows topic)Amazon Simple Queue Service (Amazon SQS)
Quota queue (allows topic)Amazon Simple Queue Service (Amazon SQS)

Stage 1 of 6: A Lambda function publishes operational events. It publishes each event once.

Next up: Trace a request on what you just read.

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.