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

Ravi Sir's Cards › AWS

Why not invoke two Lambdas from the API?

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

Why not invoke two Lambdas from the API? The client waits on both; one failure can fail the whole request; scaling couples the workers. SNS+SQS decouples producers from consumers and isolates failures per queue. API Publish once to SNS; email-q and inventory-q each trigger their Lambda.
Why not invoke two Lambdas from the API? · Download PNG
Read card text

What this card says

What it is

The client waits on both; one failure can fail the whole request; scaling couples the workers.

Why it matters

SNS+SQS decouples producers from consumers and isolates failures per queue.

How / example

API Publish once to SNS; email-q and inventory-q each trigger their Lambda.

See all AWS revision cards