Project 17
Cloud file storage
Object storage, synchronization
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
- Metadata/blob separation (→ 79): blobs in object storage; namespace, versions, and permissions in a database — kept consistent across failed uploads (→ 118 as the tool).
- Chunked upload (→ 2 hashing, 79): content-defined chunks, multipart and resumable transfer, checksum verification, deduplication by chunk hash.
- Sync protocol: a per-account change journal with per-device cursors; change notification via long polling or WebSocket (→ 40).
- Conflict handling (→ 134): the same file edited offline on two devices — detection with version vectors; resolution by conflict copies.
- Sharing model: ACLs on a hierarchy, permission inheritance, public links (→ 163 — ahead, Part 10).
- 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.