Google Drive
Keep files in sync across devices without losing anyone's work. Covers chunked uploads, metadata, change logs and sync cursors, conflict copies, and sharing.
Lessons
- 01Define the file serviceSeparate storage, sharing, and cross-device sync before sizing the system.
- 02Separate names from bytesKeep folders and revisions queryable while durable object storage holds content.
- 03Resume and verify uploadsUse a scoped upload session, chunks, checksums, and explicit finalization.
- 04Sync through a change logTreat notifications as wake-up signals and a durable cursor as recovery state.
- 05Preserve competing editsCompare the expected base revision so a later edit cannot silently erase another.
- 06Authorize every pathAccess rules must protect listings, metadata, and the actual content bytes.
- 07Deliver without wasted bytesFetch authorized manifests and missing blocks while respecting access boundaries.
- 08Recover the complete fileMake failures visible across API, metadata, objects, notifications, and clients.