Ravi Sir's Cards › AWS
Queue or fan-out?
This comparison card contrasts Queue or fan-out. Amazon SQS: Pull queue. It also notes competing consumers. It also notes backlog buffering. Amazon SNS: Push pub/sub to many subscribers (SQS, Lambda, HTTP, email). The card pairs Amazon SQS with decouple producers from one consumer group, and Amazon SNS with broadcast one event to many targets.
Read card text
What this card says
Queue or fan-out?
Amazon SQS
Pull queue; competing consumers; backlog buffering.
Amazon SNS
Push pub/sub to many subscribers (SQS, Lambda, HTTP, email).
Key points
Worker processes orders one-by-one.
Notify inventory + email + analytics at once.
Example
ReceiveMessage + DeleteMessage / Publish to topic
Use when
Decouple producers from one consumer group.
Broadcast one event to many targets.