File Sync — Chunked Upload and Notification

File Sync — Chunked Upload and Notification A sequence diagram generated by Archify. commit intent: SHA-256 of each 4 MB chunk missing chunks: 2 of 5 PUT missing chunks (presigned) commit version new version → chunk list file changed changes since cursor get version chunk list GET changed chunks only Upload Sync Desktop client · watcher · Sequence participant Desktop client watcher Metadata API · files, versions · Sequence participant Metadata API files, versions Block store · S3, content-addressed · Sequence participant Block store S3, content-addressed Metadata DB · versions, chunks · Sequence participant Metadata DB versions, chunks Notification · long poll / push · Sequence participant Notification long poll / push Other device · same account · Sequence participant Other device same account Legend request return async trace default message

Dedup

  • • Chunks addressed by hash
  • • Only new chunks are uploaded

Metadata

  • • Versions are lists of chunk hashes
  • • Strongly consistent metadata store

Sync

  • • Clients pull deltas since a cursor
  • • Conflicts become conflicted copies