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 02 · Data Systems · Data on many machines · about 18 min to read

Play it as a journeyTutor comes with a plan

Partitioning

Partitioning
Partitioning · Open board

When one machine can’t hold all your data, or answer all your writes, you cut the data into pieces and give each machine one piece. This lesson is about cutting it without sending all the work to one machine anyway. The story-first cut is Splitting the ledger (sharding). This adds what the board leaves out: splitting a secondary index, what moves when a machine joins, and how a client finds the right one.

Before you start. The previous lesson, replication Replication, put a copy of the whole dataset on every machine, so losing one machine cost you nothing. This lesson starts from a dataset too big, or too busy, for any one machine to hold at all: instead of copying it everywhere, you cut it into pieces and give each machine only its piece.

Lesson 14 of 24 in Data Systems

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

  • The machine that ran out of room
  • 1995: the page every browser wanted from one machine
  • 1997: the paper that named the hot spot
  • The piece that goes hot anyway
  • The key no hash can fix, and the salt that does
  • Rebalancing: what moves when a fifth machine shows up
  • Where you will meet this

Terms it explains: hot spot, hash, partition, shard, Salting, rebalancing, fixed-partition-count / dynamic partitioning, global (term-partitioned) index, gossip, hot spot / hot key, local (document-partitioned) index, MPP, partition / shard, range vs hash partitioning, request routing, secondary index, skew, ZooKeeper.

Related papers

Review Data Systems