Ravindra BagaleCourses & study guides मराठी Track your progress

Ravi Sir's Cards › AWS

Why SNS then SQS?

What is a VPC: your own private network inside one AWS Region, example ThreeTierVpc 10.0.0.0/16.

Why SNS then SQS? Calling two Lambdas from the API ties failures together and blocks the client on both. SNS fans out one message to many subscribers. SQS buffers each consumer so a slow email worker does not block inventory. Subscribe queue ARNs to the topic (SNS → SQS). Grant SNS permission to SendMessage. Workers use event source mappings. Pause the email worker; inventory still drains its queu
Why SNS then SQS? · Download PNG
Read card text

What this card says

Why do we need it?

Calling two Lambdas from the API ties failures together and blocks the client on both.

What is it?

SNS fans out one message to many subscribers. SQS buffers each consumer so a slow email worker does not block inventory.

How to do it

Subscribe queue ARNs to the topic (SNS → SQS). Grant SNS permission to SendMessage. Workers use event source mappings.

Raw message delivery

Example

Pause the email worker; inventory still drains its queue. Restart email; backlog clears.

See all AWS revision cards