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

Ravi Sir's Cards › AWS

Failure isolation

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

Failure isolation If email code throws, inventory must still update. Shared one-Lambda fan-out does not isolate well. Separate queues and Lambdas isolate failures. Each queue can have its own DLQ and retry count. Set maxReceiveCount 3 → DLQ on each queue. Idempotent PutItem keyed by orderId+worker type. Poison email message lands in email-DLQ; inventory table still shows reserved for that orderId.
Failure isolation · Download PNG
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.

See all AWS revision cards