Why a table's food shouldn't have one queue per dish
transcript
A table orders a pizza, fries and two lemonades. The lemonades arrive in two minutes. The pizza in fourteen. The table eats in pieces.
The kitchen has stations. Oven, fryer, bar. Each has its own line. So the order is split. One ticket per station. Each ticket has its own short life. Queued, cooking, ready.
Where does the order's ready flag live? Not on the order. It's worked out from the tickets. When the last one is ready, the kitchen says: complete.
Ortiz's order: the bar finishes at eight, the fryer at seven. The oven finishes at fourteen. Only then is the order complete. The slowest station sets the moment. The kitchen announces it, and the food goes out together.
Each station keeps its own queue. First in, first out. One ticket at a time. Tickets don't know each other. Only the kitchen sees the whole order. So the join lives in one place. Listeners are told after the lock is released. A slow screen can't stall it.
Fan out to the stations. Join on the last ticket.
Full breakdown in the lecture.