Ravi Sir's Cards › AWS
Failure isolation
This revision card explains Failure isolation. If email code throws, inventory must still update. Shared one-Lambda fan-out does not isolate well. It describes separate queues and Lambdas isolate failures. Each queue can have its own DLQ and retry count. The how-to section covers how to set maxReceiveCount 3 , then DLQ on each queue. Idempotent PutItem keyed by orderId+worker type. An example on the card is poison email message lands in email-DLQ; inventory table still shows reserved for that orderId.
Read card text
What this card says
Why do we need it?
If email code throws, inventory must still update. Shared one-Lambda fan-out does not isolate well.
What is it?
Separate queues and Lambdas isolate failures. Each queue can have its own DLQ and retry count.
How to do it
Set maxReceiveCount 3 → DLQ on each queue. Idempotent PutItem keyed by orderId+worker type.
DLQ
Example
Poison email message lands in email-DLQ; inventory table still shows reserved for that orderId.