SD-5 · FILE SYNC AND STORAGE · INTERACTIVEBreak it.
Break it.
Then fix it.
Connect more devices, watch what melts, and add the parts a real sync service needs. Every switch is a decision you would defend in an interview.
CHALLENGEKeep 300M devices in sync: changes visible in under 5 s, no lost edits, no errors.
StatusDOWNAt 10M devices online
Sync delay32.5 sPolling every 30 s
Concurrent editsOverwrittenLast writer wins
Errors85.7%Calls being dropped
Monthly cost$113,820A full copy per version
DevicesLIVE
10M online · 3.3K changes/s333K polls/s
Load balancerOK
Metadata and blocks350K calls/s
Metadata × 100HOT
Mostly answering polls350K / 500K ops/s
Block servers × 29OK
2 MB whole file per change20K / 29K MB/s
Metadata DBDOWN
Journal per namespace350K / 50K ops/s
Block storageOK
Erasure coded6.7K MB/s new
Two devices can overwrite each other. A commit just replaces the file, so when two laptops edit the same file, one edit silently disappears. Commit with the version you started from, and on a mismatch save a conflicted copy.
20×Fewer bytes per changeAbout 100 KB of new blocks instead of the 2 MB file.
10M/sPolls at 300M devicesEvery 30 seconds, 99% empty. Push makes them disappear.
409On a stale commitThe client saves a conflicted copy; no edit is lost.
1 : 3,000Changes to online devicesSo idle connections must cost almost nothing.
Want the reasoning behind every switch?Visual walkthroughFull write-up
Was this lab useful?Your vote tells us what to improve next.