Resilience
Designing systems that degrade gracefully when parts fail.
Timeouts, retries with backoff, circuit breakers and fallbacks keep one failure from taking everything down. External services, including AI providers, will fail. A product that degrades gracefully keeps users' trust.
Why it matters for a product engineer
Every system depends on parts that will fail: a database, a cloud service, a payment provider, an AI model. Without limits, one slow part makes callers wait, retries add more load, and the failure spreads to everything else. Timeouts, retries with backoff, circuit breakers and fallbacks keep one failure in one place. Product engineers also decide what users see when a part fails: a clear message and the features that still work, or a blank screen.
How to do it
- List each dependency, and decide what the product does when it is slow or down.
- Set a timeout on every outside call, shorter than the time the user will wait.
- Retry only safe operations, with backoff and jitter, and cap the total number of retries.
- Limit incoming work when queues grow, and reject extra requests early instead of failing slowly.
- Test failures on purpose: block a dependency in staging, and check what users see.
Common mistakes
- No timeout, so one slow service holds every thread.
- Retries at every layer, which multiply the load on a struggling service.
- Recovery processes that were never tested at full scale.
- An error page for the whole product when one optional feature fails.
Example
On 19 October 2025, a race condition in AWS automation left the DNS record for DynamoDB’s main endpoint in Northern Virginia empty. DynamoDB itself recovered within three hours, but the failure spread. The system that manages EC2’s physical servers had to renew a huge number of leases. The work timed out, was queued again, and the system went into congestive collapse. Engineers recovered it by limiting incoming work and restarting hosts. AWS is adding rate limits based on queue size.
How one empty DNS record spread through AWS, 19 and 20 October 2025 (PDT)
- 11:48 PMDynamoDB DNS record is emptyProblemA race condition in automation
- 2:25 AMNew EC2 instances fail to launchProblemLease renewals time out and are retried
- 2:40 AMDynamoDB errors end
- 4:14 AMIncoming work throttledDecisionSelected hosts restarted
- 5:30 AMLoad balancer errors beginProblemHealth check failures
- 2:20 PMEvent endsResult
The first failure lasted about three hours. The retries and the recovery work kept the region in trouble for over fourteen.
ReportedAWS post-event summary, October 2025
Sources: Summary of the Amazon DynamoDB service disruption in the Northern Virginia (US-EAST-1) Region (AWS) ↗ · Addressing cascading failures (Site Reliability Engineering, chapter 22, Google) ↗
Resources
1- bookGo deeper
Addressing cascading failures (Site Reliability Engineering, chapter 22) ↗
Google SRE · 40 minHow overload spreads through a system, and the timeouts, retries and load shedding that stop it.
Tools
1- ToolOpen source