When the neighbour is slow: timeouts, retries, breakers
The Cut Phone Line · Open board
Two branches and the phone line between them. This lesson is about the line that is not cut, only slow, which is the harder case.
Before you start. You need The stall that turns people away (load shedding and admission control): work that a customer has already given up on is wasted work, refusing some orders early keeps the rest alive, and refused customers who retry at once make a retry storm. The cut phone line (CAP, done properly) gave you the timeout, the number of seconds you wait before you decide the other side is gone. Rate limiting: the token bucket gave you backoff, which means waiting longer after each failure, and jitter, which means adding a random amount to that wait.
Lesson 15 of 115 in System Design
The rest of this lesson is part of a plan.
A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.