Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

Module 01 · System Design · The stall gets famous · about 16 min to read

Watch: Queues: the order slip rail and the cliff
▶ VideoPlay it as a journeyTutor comes with a plan

The order slip rail (queues & the utilization cliff)

The Order Slip Rail
The Order Slip Rail · Open board

The stall, the wire over the stove, and the chart that ruins most people’s intuition about spare capacity. The video walks the same story with the slips moving: the order slip rail.

Before you start. You need one idea from The chai stall that got famous (load balancing): when a single stall could not keep up, you put several stalls behind one counter and shared the crowd between them. This lesson is about the problem that appears inside one stall, and the only maths is a number divided by one minus that number.

Lesson 3 of 115 in System Design · Free with an account

Keep reading. It's free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

No card, and chalk sends no email. Google sign-in only.

Start free with Google

In this lesson

  • 1909: Copenhagen, and the man asked how many wires to buy
  • Back at the stall: the counter freezes behind the stove
  • The wire over the stove: a queue, and work that happens later (asynchronous)
  • Erlang’s bad news: utilisation, and why 95% busy is not “room to spare”
  • The dropped slip: at-least-once, and why cooking it twice must be safe
  • When the rail is full: backpressure, the kind machine that says no
  • 1993 and 2011: MQSeries made the rail a product, Kafka made it a log

Terms it explains: queue, asynchronous, utilisation, 150.8×, at-least-once, backpressure, 99×, broker, producer, consumer, visibility timeout, acknowledges, idempotent, dead-letter queue, 1.00 to 1.04, 0.04, 49.0 to 99.0, 50, 1,225 times more.

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 papers

Review System Design