Index

The stall, built: rush hour (load testing, p99 and the knee in Go)

The Order Slip Rail
The Order Slip Rail · Open board

The rail of slips over the stove, and the chart where the wait leaves the ground as the stove gets busy. This lesson draws that chart again, from a real program, by sending it a crowd and timing every cup.

Before you start. The stall, built: copies and shards (replication and sharding in Go) finished the stall’s back room: a copy of the book that runs a few milliseconds behind, and the book cut into three by a hash. The front of the stall is still the one from The stall, built: one counter in code (load balancing, health checks and caching in Go): three stalls, each cooking one cup at a time, and a gate that sends each customer to the least busy one. Thirty stalls on one order (availability, the nines, and the tail at scale) said the number that matters is how slow the unlucky customers are, not the average one, and that an order split across many stalls meets its unluckiest stall far more often. The stall that turns people away (load shedding and admission control) showed that when orders arrive faster than the stoves cook, the line grows without end. This lesson measures both on the stall you built.

Continue reading with a plan

The first three lessons of every track are free. This lesson is included with a plan, which unlocks every lesson, board, video, lab and paper for one price.

View plans →Already a member? Sign in

Lab

The kitchen is 95% busy. How much longer do you wait than at 50%?

Drag How busy the kitchen runs to 99%, then set Turn orders away to 10 slips and watch the wait fall.

Open The order slip rail →

Related paper

Review System Design →

Saved in this browser, and to your account when you sign in.