E-commerce Checkout: The Gray Zone
Hard · system design problem
Zone B’s network starts dropping packets — health checks still pass — and the inventory service slows down behind three layers of retries.
The load balancer spreads checkout traffic over two zones (checkout-a and checkout-b, 8 instances each). Checkout calls inventory through the Envoy mesh (3 retries, 300 ms timeout on checkout → Envoy; 3 retries, 150 ms on Envoy → inventory) and writes orders to PostgreSQL. At T+20s zone B’s network degrades: 85% of packets to it are lost and the rest take 300 ms longer, yet its health checks pass. At T+40s inventory slows down to 6× its latency at 60% of its capacity.
Topics
More
Codelays runs in your browser: turn on JavaScript to use it.