System design
Circuit breakers: preventing cascading failures
When a downstream service slows down, it can exhaust thread pools and take down your entire architecture. How the Circuit Breaker pattern isolates failure.
The engineering questions you get asked, and the bugs you actually hit. Drawn, one mechanism at a time, in the order the videos ship.
When a downstream service slows down, it can exhaust thread pools and take down your entire architecture. How the Circuit Breaker pattern isolates failure.
Rate limiters protect servers from traffic surges, DoS attacks, and abusive scraping. How token bucket and leaky bucket work, and which one your API needs.
A CDN is not a faster server. It's a copy of your response nearer the person asking — and everything that surprises you about it follows from what HTTP lets a shared cache keep.