SDE & MLE Prep

File Sync (Dropbox / Google Drive)

Requirements: upload/download files, sync across devices, sharing, version history; large files; offline edits.

client (watcher + chunker) --metadata--> metadata svc -> SQL (files, versions, chunk lists, ACLs)
        |                                     |
        |--chunks (4 MB, by hash)--> block svc -> object store (content-addressed: sha256 -> chunk)
        |                                     |
        <--------- notification svc (long poll / WebSocket: "file X changed") --------

Deep dives: split files into content-defined chunks, upload only changed chunks (delta sync) and dedupe identical chunks globally by hash; metadata needs strong consistency (SQL, sharded by user/namespace); conflict handling = keep both copies ("conflicted copy"); resumable uploads with pre-signed URLs.