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 05 · System Design · Deeper than the interview · about 15 min to read

Watch: Running Claude all day: how a fleet that cannot grow fast stays up, and stays right
▶ VideoPlay it as a journeyTutor comes with a plan

Size for the zone you lose: capacity, headroom and cost

Reliability, Cost & Multi-Region
Reliability, Cost & Multi-Region · Open board

Reliability and cost on one board. This lesson turns that board into sums: how many servers a service needs, how many it needs when a zone is gone, and what each request costs.

Before you start. You need Two kitchens, two cities (multi-region and active-active), which ended on one fact: when one region dies, the survivor must carry both loads, so each region needs spare room, and that spare room is most of the extra cost. You need Regions, AZs & the Backbone, where an availability zone (a zone for short) is one building, or a few, with its own power and cooling inside a region. You need The order slip rail (queues & the utilization cliff), where the wait grows steeply as a server nears 100% busy. The bill nobody reads showed the cloud bill is a meter that runs on hours and on bytes leaving. Every other word here is shown working before it is named.

Lesson 27 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

  • 25 April 2023: Paris loses a third of its buildings
  • Little’s law: how many requests are in the building at once
  • Headroom: the idle share you keep on purpose
  • Lose-a-zone sizing: what N+1 does not cover
  • Capacity has to be running before the zone dies
  • Cost per request: turn the bill into one number
  • Egress: the bytes that leave cost more than the machines
  • The bill as a design input

Terms it explains: Little's law, Headroom, N+1, Lose-a-zone sizing, Cost per request, Egress, Common mistakes, Run the script.

Review System Design