Interview Prep/AWS/DNS, CDN and Messaging

What is SNS and how does fan-out with SQS work?

IntermediateConceptDNS, CDN and Messaging
Answer

SNS is a pub/sub service: publishers send to a topic, which pushes to many subscribers (SQS, Lambda, HTTP/S, email, SMS, Firehose). The fan-out pattern subscribes several SQS queues to one topic so each downstream consumer gets its own durable copy and processes at its own pace.

The queue policy must allow sns.amazonaws.com with aws:SourceArn of the topic. Use raw message delivery to skip the SNS JSON envelope.

aws All AWS questions Roadmap: AWS core services

More on DNS, CDN and Messaging