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 29 · System Design · WhatsApp · about 23 min to read

Watch: How a phone holds one line open for months
▶ VideoPlay it as a journeyTutor comes with a plan

WhatsApp, the case study

Everything
Everything · Open board

The whole WhatsApp architecture on one board: a server that carries billions of messages a day and is built so it can never read a single one of them. This lesson follows one message across that architecture, from a phone with no fixed address to a phone on the other side of the planet, and the constraints that shaped every choice along the way.

Boards

Before you start. You need to know that a phone app talking to the internet is really talking to a computer elsewhere called a server, and that anything you send has to physically travel there and back. Nothing else here needs any programming, database or maths background.

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

  • 1976, Fastiv: a house that never trusted the phone
  • 2009, his birthday: a status line that became a messenger
  • The wall: a phone with no address, and the line it holds open
  • Store it, wait for the courier’s nod, then forget it
  • One room, a hundred people: turning one letter into a hundred, once
  • A courier who reads nothing, and forgets the key on the spot
  • Two countries, and a wait physics won’t let you shrink
  • 32 engineers, 450 million phones, one lean office
  • 01 · The Persistent Connection
  • 02 · The Message Journey (India to US)
  • 03 · Real-Time & Durability
  • 04 · The Database Layer
  • 05 · Groups & Fan-out
  • 06 · End-to-End Encryption
  • 07 · Scale, Presence & The Erlang Story
  • The numbers, by hand

Review System Design