File manager sync model
An iOS file manager shows a listing, offline files, and upload progress. How would you separate the storage of file metadata from the actual bytes?
An iOS file manager shows a listing, offline files, and upload progress. How would you separate the storage of file metadata from the actual bytes?
Metadata like name, size, modification time, remote id, version, whether a local copy exists, and sync state lives in SQLite or SwiftData rows so the listing draws without any bytes, and the actual file bytes live in a subdirectory of Application Support named by remote id, so a row only points at a path.
iOS system designShort answerBasics
Design a simple notes app. Walk me through the architecture, how you store the data, and…
#sync
iOS system designShort answerAdvanced
A user picks 50 photos to upload, and they all have to get there eventually, even if they…
#upload
iOS system designShort answerBasics
How is an "offline-first" app architecture different from the usual "network first, fall…
#sync
iOS system designMultiple choiceAdvanced
In an offline-first to-do app, two devices edit the same item while offline and then…
#sync