Lesson 14 of 16
39. Design File Storage and Sync (Google Drive / Dropbox)

Variations to practise

3 min read+10 XP

Chapters used

Approach (1), Estimation (2), Blob storage and presigned URLs (11), Replication (14), Sharding (15), Transactions and optimistic locking (17), Polling vs push (21), APIs and idempotency (24), CDNs (26).

Try these variations

Each is a common follow-up. Answer in two minutes, then check the sketch.

  1. "Share a folder with 10,000 people." → The folder is its own namespace; members' devices sync its journal; ACL checks on every download URL; notifications fan out (Chapter 23).
  2. "Restore everything to yesterday after ransomware." → For each file, point the latest version back to yesterday's block list: a metadata-only operation.
  3. "Photos only, like Google Photos." → Same block storage, plus thumbnails and metadata extraction in a processing pipeline, and an index for search by date and place.
  4. "Edit Word documents together in real time." → A different design: an operation log per document with OT or CRDTs, a WebSocket per editor, and periodic snapshots into the file store.