Decide who needs a copy
When to use SNS to send a copy to each interested subscriber, SQS to buffer work for consumers, or both to give each downstream application its own backlog.
Use an Amazon SNS topic when several subscribers each need to hear about the same event. The producer publishes once, and SNS pushes a copy to each subscribed endpoint that should receive it. This is fan-out: shipping and analytics can both learn that an order was placed.
Use an Amazon SQS queue when one application needs a work buffer. A producer can send work straight to the queue, and workers pull it as they have capacity. Multiple workers polling that queue share the same backlog; SQS does not give each worker its own copy of every job.
Next up: Sort the statements on what you just read.
AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.