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.