Course map

Project 17

Cloud file storage

Object storage, synchronization

Start after Part 8

Key topics 79, 134

Architecture Services

Published reference Dropbox, "Inside the Magic Pocket" (James Cowling, 6 May 2016)

Brief

Dropbox-style storage: upload and download files of any size, folder hierarchy, multi-device sync, sharing with permissions, version history.

Targets

50M users averaging 10 GB · resumable uploads over bad networks · a change on one device visible on others within seconds · object-storage durability class · no corrupted or silently lost versions.

Must cover

  • Chunked, resumable uploads with checksums (→ 79).
  • Sync conflict resolution — version vectors, conflict copies, never silent loss (→ 134).
  • Deduplication by chunk hash — and what it costs (P).
  • File versioning — history, restore, storage economics (P).

Design challenges

  1. Metadata/blob separation (→ 79): blobs in object storage; namespace, versions, and permissions in a database — kept consistent across failed uploads (→ 118 as the tool).
  2. Chunked upload (→ 2 hashing, 79): content-defined chunks, multipart and resumable transfer, checksum verification, deduplication by chunk hash.
  3. Sync protocol: a per-account change journal with per-device cursors; change notification via long polling or WebSocket (→ 40).
  4. Conflict handling (→ 134): the same file edited offline on two devices — detection with version vectors; resolution by conflict copies.
  5. Sharing model: ACLs on a hierarchy, permission inheritance, public links (→ 163 — ahead, Part 10).
  6. Version history economics: full copies vs. chunk-level deltas (→ 208 — ahead, Part 12).

Out of scope

Real-time collaborative editing (OT/CRDTs — a discipline of its own); client UI.

Search the guide