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 27 · System Design · Twitter (X) · about 29 min to read

Watch: Timeline fan-out: push for the many, pull for the few
▶ VideoPlay it as a journeyTutor comes with a plan

Twitter (X), the case study

Everything
Everything · Open board

The whole set on one board. The map and the seven problems it’s built from are linked below.

Boards

Before you start. All you need is the shape of a social feed: you post something, and the people who follow you expect to see it soon after. This lesson is about what happens to that simple idea once “the people who follow you” ranges from three hundred to a hundred million.

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

  • 2008: an election, and the whale everyone remembers
  • The two ways to build a feed, and why each one loses somewhere
  • An ordinary Tuesday, and the post that is its own flood
  • The trick: don’t pick one rule, split the crowd
  • Why the list holds markers, and not the posts
  • A number nobody has to ask permission for
  • Retrieval (cold, no peeking)

Terms it explains: marker, fan-out on write, push, timeline, hydration, shard, latency, Snowflake, when, which machine, which one, FlockDB, Earlybird, MySQL, Manhattan, Redis, fail open, not.

Review System Design