internalsGet Pro

System Design · Module 12

Reliability, overload and traffic spikes

Lessons
13
Free
0
Reading
~4 h

Your progress

0 / 13 lessons done

Sign in to track

Lessons

  1. Idempotency: making retries safeA timeout cannot tell you whether an order or payment succeeded. Safe retries need durable operation identities at every boundary that can create another effect.18 min
  2. Exponential backoff and jitterRetries can recover a checkout after a brief connection failure. The same retries can keep a payment service overloaded unless you control their timing and total cost.18 min
  3. Circuit breakers and bulkheads: containing failuresA slow optional dependency can stop checkout when both share connections or workers. Circuit breakers and bulkheads help you contain that failure instead of spreading it.19 min
  4. Batching: combining requests for efficiencyBatching can remove a bottleneck without adding servers. It also introduces waiting, larger failure groups and buffered state that you must manage explicitly.18 min
  5. Backpressure: slowing down upstream producersA fast reader can overwhelm a slower database without using much CPU. Backpressure keeps importers, workers and streaming pipelines within their capacity instead of turning temporary slowdowns into memory failures.18 min
  6. Load shedding: rejecting work to stay availableTraffic spikes and slow dependencies can consume every available request slot. Load shedding limits that damage before waiting customers and retries turn a slowdown into an outage.19 min
  7. Tail latency: why p99 mattersA service can have a healthy average response time while some customers repeatedly wait seconds. Tail measurements help you find those delays without making overload worse.19 min
  8. Graceful degradation: keeping core features working during failuresA small dependency failure can disable an otherwise healthy product. Graceful degradation lets you preserve useful behavior without hiding failed payments, stale permissions or broken business guarantees.19 min
  9. Rate limiter placement: where and what to limitA limit can report successful enforcement while protecting the wrong resource. Placement determines whose traffic shares a budget, which costs rejection avoids, and what happens when enforcement fails.18 min
  10. Rate limiting algorithms: token bucket to sliding windowA rate limit’s algorithm determines which requests succeed, not just how many succeed on average. Choosing the wrong model can block normal customers or admit bursts your service cannot handle.19 min
  11. Abuse prevention: bots, spam and fraudA request can pass authentication and rate limits yet still steal an account, publish spam or misuse a payment method. Engineers need controls at the point where requests create consequences.19 min
  12. Case: Stripe’s approach to safe payment retriesA payment timeout can leave your database and your provider disagreeing. Safe recovery needs a stable operation identity and a way to establish what actually happened.18 min
  13. Design: an API rate limiterA limiter sits before useful work, but can become a new source of outages. You need to control both the traffic it admits and the failures it introduces.30 min

Practise with

Terms this module teaches 30

Open glossary

Backpressure

Feedback that makes an upstream producer slow down or pause when downstream processing cannot accept more work.