Reliability

Your dependencies will fail. These lessons show what a service does in the seconds after that happens, and the handful of patterns that decide whether it survives or takes everything down with it.

01
TIMEOUTS
A call without a timeout is a promise to wait forever
L114 MIN
02
RETRIES, BACKOFF & JITTER
Retrying immediately turns one failure into a flood
L215 MIN
03
RETRY STORMS
Every layer retries, and 3 becomes 27
L214 MIN
04
CIRCUIT BREAKERS
Stop calling the thing that is already down
L215 MIN
05
BULKHEADS
One slow dependency should not sink the whole ship
L214 MIN
06
BACKPRESSURE
An unbounded queue is a slow crash
L214 MIN
07
LOAD SHEDDING
Drop some requests on purpose so you can serve the rest
L215 MIN
08
CASCADING FAILURES
One node dies, the survivors inherit its load, then they die
L318 MIN
09
GRACEFUL DEGRADATION
Serve less, but keep serving
L112 MIN
10
RATE LIMITING
Token bucket, sliding window, and the burst that gets through anyway
L215 MIN
11
CAPSTONE: CHECKOUT UNDER FAILURE
Keep taking orders while the payment provider is on fire
L320 MIN