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 25 min to read

Play it as a journeyTutor comes with a plan

Design WhatsApp, in the interview

Design WhatsApp in the Interview
Design WhatsApp in the Interview · Open board

The design growing one requirement at a time, each step’s new boxes dark and numbered, the earlier ones grey.

Before you start. Two lessons are borrowed. Design the Whole Thing (the interview, assembled) gave you the steps of a design answer: ask, estimate, API, data, design, bottlenecks, with nothing on the whiteboard until a number pays for it. WhatsApp, the case study told the story of this exact system: the standing connection, the mailbox, the sealed boxes and the groups. The second half of this page is its interview cut. Charged Twice (idempotency & exactly-once) is a short side read on the unique ID that stops a repeated action from happening twice, which the message ID here relies on. This lesson is how to say it all in forty-five minutes.

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

  • A phone line the state might be on
  • The courier who is already at the door
  • The mailbox that waits for a nod
  • The sealed box
  • One letter, a hundred doors
  • The heavy parcels go round the back
  • Requirements
  • Out of scope, said out loud
  • Targets
  • Estimates that change the design
  • Entities and API
  • Storage
  • The design, one requirement at a time
  • Deep dives
  • What each level adds
  • The follow-up
  • More follow-ups
  • How to say it in the round

Terms it explains: blind on purpose, persistent connection, mailbox, acknowledgment, store and forward, end-to-end encryption, forward secrecy, fan-out, CDN, Common mistakes, p99, User, Prekey bundle, Message, Group, Mailbox entry, Blob, mid-level, senior, staff, ciphertext, registry, sender key.

Review System Design