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 03 · System Design · Holding up under load · about 15 min to read

Watch: Scatter-gather: one query, a thousand leaves, and the slowest one wins
▶ VideoPlay it as a journeyTutor comes with a plan

Thirty stalls on one order (availability, the nines, and the tail at scale)

Query Serving
Query Serving · Open board

One search fanned out to many machines at once, and panel B, “the slowest leaf wins”. This lesson walks the same idea through the chai stall, one wedding order split across thirty stalls. The lab at the end of the story lets you move the number of stalls yourself.

Before you start. You need the stall from The chai stall that got famous (load balancing): one famous stall that became a chain, with the crowd shared between stalls so no single one drowns. One wala, many kettles (concurrency vs parallelism) helps too: it showed a whole chain of stalls running off one gas cylinder, and that cylinder comes back here.

Lesson 16 of 115 in System Design

The rest of this lesson is part of a plan.

A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.

See plansAlready a member? Sign in

Or start free: a free account opens lessons 2 and 3 of every track.

In this lesson

  • February 2013: Google’s arithmetic of the slowest server
  • The wedding order: one order, thirty stalls
  • Is the stall open? Availability, counted in nines
  • All thirty must be open: availability multiplies
  • A spare stall: redundancy
  • Open but slow: tail latency, and the fan-out that multiplies it
  • Three ways out: a hedged request, fewer stalls, a timeout

Terms it explains: availability, nines, redundancy, tail, tail latency, fan-out, hedged request, teaching values.

Lab

Every stall is slow one time in a hundred. An order that waits on a hundred stalls is slow how often?

Drag Stalls on the order to 100, then switch to Hedge slow calls and watch Orders slow.

Open Thirty stalls on one order

Related paper

Review System Design