The whole system on one board, the sync problem along the top and the disks that finally hold your bytes along the bottom. Every box on it gets a scene below.
Before you start. You need one fact: Dropbox keeps a copy of your files on your own machine and another copy on its machines, and those two copies drift apart whenever you are offline. That is the whole of the background. Every other word in the story is explained the first time it is used.
Lesson 86 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.
Or start free: a free account opens lessons 2 and 3 of every track.
In this lesson
A week in a bag: two people edit the same folder, and both of them are right
2015: the team that shipped nothing, because the path was the file
2016, their best year: the rewrite, and the engine called Nucleus
Five seconds that need a third snapshot: the Synced Tree, the picture both sides started from
The Planner: keep what you saw, never keep the plan
Nobody can imagine the cases, so CanopyCheck imagines them
One floor down, the same move: the immutable block
Trinity: a test harness that owns the clock
Leaving the cloud, and the number everyone repeats wrongly
The disks are lying to you
The metadata layer, in detail
The arithmetic, by hand
Where this sits in the collection
What is not published (do not invent it)
The numbers that are real
Terms it explains: Remote Tree, Local Tree, Synced Tree, merge base, Planner, CanopyCheck, immutable block, "$74.6M saved", "$75M annually", "~700k lines of Python", The Nucleus team size, "Committer", "Scheduler", Tree, The early MySQL history, "Diskotech", 4 years, −$63.9M → +$305.0M, $25.3M, 500+ PB, 600,000+ drives, Reed-Solomon 6+3 = 1.5x, >50%, 11 nines, tens of millions, 200, 4 MB, unique, Alberto, Beatrice, cycle, in general, astronomical, differently out-of-date view, mitigating its bugs, reverse-engineering it, " ⇒ (a), it is O(n), missing noun, years of production hardening.