SystemKit

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

  1. 01Define the file serviceSeparate storage, sharing, and cross-device sync before sizing the system.
  2. 02Separate names from bytesKeep folders and revisions queryable while durable object storage holds content.
  3. 03Resume and verify uploadsUse a scoped upload session, chunks, checksums, and explicit finalization.
  4. 04Sync through a change logTreat notifications as wake-up signals and a durable cursor as recovery state.
  5. 05Preserve competing editsCompare the expected base revision so a later edit cannot silently erase another.
  6. 06Authorize every pathAccess rules must protect listings, metadata, and the actual content bytes.
  7. 07Deliver without wasted bytesFetch authorized manifests and missing blocks while respecting access boundaries.
  8. 08Recover the complete fileMake failures visible across API, metadata, objects, notifications, and clients.

Practice this chapter

  1. TaskDesign an offline-first notes appCarry the chapter's sync ideas to small text documents, where a conflict can be merged instead of copied.