Ravi Sir's Cards › AWS
Why not invoke two Lambdas from the API?
This interview card answers: 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.
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.