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 12 · System Design · The questions that keep coming up · about 19 min to read

Watch: Eleven nines: durability as a budget, and a storage engine proven against a hash map
▶ VideoPlay it as a journeyTutor comes with a plan

Design an object store (a million-million files, and none of them lost)

Eleven Nines
Eleven Nines · Open board

: the board on how a storage service promises to lose almost nothing. This lesson builds the service under that promise.

Before you start. You need the six steps from Design the Whole Thing (the interview, assembled): ask, estimate, API, data, design, bottlenecks, with a number paying for every box. Splitting the ledger (sharding) showed how a table too big for one machine is cut by key into pieces on different machines, and that is the move we use on the list of names. Later in this track, Dropbox, the case study tells how a file service checks its own disks all day because a disk can lie. Here that habit becomes a design rule.

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

  • 14 March 2006: two verbs and a name
  • The object and its key: a flat list, no folders
  • The metadata store: the ledger is not the warehouse
  • Eleven nines: what a promise of “almost never lost” means
  • Three copies: the first way to survive a dead disk
  • Erasure coding: a spare part for any part
  • The checksum: trust no disk
  • Byte-range reads: ask for a slice, pay for a slice
  • Step 1, requirements
  • Step 2, targets
  • Step 3, estimates that change the design
  • Step 4, entities and API
  • Step 5, storage, with the trade said plainly
  • Step 6, the design, one requirement at a time
  • Step 7, deep dives
  • What each level adds
  • The follow-up: store a 5 TB object

Terms it explains: object, key, metadata store, partition map, Durability, replication, parity, stripe, erasure coding, checksum, end to end, byte-range read, Common mistakes, bucket, chunk.

Review System Design