Ravi Sir's Cards › AWS
What are SQS and SNS?
This revision card explains What are SQS and SNS? It starts from the need that apps that call each other directly break when one is slow or down. It describes SQS is a durable message queue. SNS is pub/sub fan-out to many subscribers (including SQS). The how-to section covers how to create topic/queue , then subscribe SQS to SNS , then publish , then consumer long-polls and deletes after success. An example on the card is order placed , then SNS , then inventory SQS + email SQS; each worker scales alone.
Read card text
What this card says
Why do we need it?
Apps that call each other directly break when one is slow or down.
What is it?
SQS is a durable message queue. SNS is pub/sub fan-out to many subscribers (including SQS).
SQS / SNS
How to do it
Create topic/queue → subscribe SQS to SNS → publish → consumer long-polls and deletes after success.
Example
Order placed → SNS → inventory SQS + email SQS; each worker scales alone.