Skip to content

AWS SNS

  • The "event producer" only sends message to one [[SNS topic]]
  • As many "event receivers" (subscriptions) as we want to listen to the SNS topic notifications
  • Each subscriber to the topic will get all the messages (note: new feature to filter messages)
  • Up to 10,000,000 subscriptions per topic
  • 100,000 topics limit
  • Subscribers can be:
    • AWS SQS
    • [[HTTP]] / [[HTTPS]] (with delivery retries - how many times)
    • Lambda
    • [[Email]]s
    • [[SMS]] messages
    • [[Mobile notification]]s

SNS integrates with a lot of Amazon Products

SNS - How To Publish

SNS + AWS SQS: Fan Out

  • Publish once in SNS, receive in many SQS
  • Fully decoupled
  • No data loss
  • Ability to add receivers of data later
  • SQS allows for delayed processing
  • SQS allows for retries of work
  • May have many workers on one queue and one worker on the othere queue

Hands on

You can type SNS or Simple Notification Service in AWS Console.

Then create MyFirstTopic.

Now create a subscription.

Confirm subscription

Now publish a message.