Idle CPU, Full Threads
Easy · system design problem
The payment vendor gets 10× slower. checkout’s CPU drops, the autoscaler scales nothing — and a quarter of the requests are rejected.
checkout calls a payment vendor on every order (writes): 3,000 requests/s on 8 instances with 200 request threads each, and autoscaling on CPU. At T+20s the vendor’s latency jumps from 120 ms to 1.2 s for the rest of the afternoon (it still has enough capacity). You cannot skip the payment call, and the vendor cannot be fixed from your side. Mobile clients retry failed requests once.
Topics
More
Codelays runs in your browser: turn on JavaScript to use it.