The Cascade That Took Down Three Services
A single slow dependency turned synchronous timeouts into a process-pool meltdown that propagated upstream.
Overview
A payment processor slowed down, and four unrelated services went down with it because every one of them waited too long for it.
What happened
At 2:14 AM on a Tuesday, the on-call engineer was paged: the checkout API was returning 503s. Within eight minutes, four services were down. Their only link was a shared downstream dependency on a payment processor that had started responding slowly.
The outage unfolded in five stages.
- At 2:14 AM the checkout API began returning 503s.
- By 2:17 AM two of its upstream callers had gone red as well.
- By 2:22 AM four services were down.
- Eleven minutes into the incident, the payment processor recovered on its own.
- It took 36 more minutes for the retry queues to drain and the services to stabilize.
Key concepts
- Cascading failure
- Thread pool exhaustion
- Retry storm
- Circuit breaker
- Bulkhead pattern
Interview questions
- You are on-call. The checkout service is down, and three services that depend on it are also timing out. How do you diagnose and recover?
- Why are long timeouts (like 30 seconds) dangerous in synchronous service-to-service calls?
Sign up free to read the full topic
More War Stories topics
- N+1 Query Pattern That Collapsed Under Load
- NAT Gateway Port Exhaustion Under Bursty Lambda Traffic
- Node.js Memory Leak That Required Daily Restarts
- Public S3 Bucket Exposed Customer PII for 8 Months
- Silent Data Corruption from an Off-By-One Migration
- Single-Region Dependency That Caused a Global Outage
- Third-Party API Outage That Was Mistaken for Own Code
- Thundering Herd After a Cache Cluster Restart
- TLS Certificate Expiry That Took Down an Internal API
Start free on Cariara · Coding problems · System design studio