Design a Shared Photo Album With Offline Sync on Mobile
Last updated: November 29, 2026
Quick Overview
Design a shared album feature where several people add, caption, and remove photos from their phones, including while offline, and every member eventually sees the same album.
Meta
November 29, 20260
0
0 solved
Design a shared album feature where several people add, caption, and remove photos from their phones, including while offline, and every member eventually sees the same album.
Meta's mobile-first products force designs where the client is a real participant in the data model, not a thin view. The interviewer checks a sync protocol with change cursors, conflict resolution rules, and how large media uploads are decoupled from metadata.
What the Interviewer Expects
- Separate metadata sync from media upload and download
- Use client-generated IDs and an operation log for offline edits
- Define a conflict resolution rule per field
- Use a server change cursor so clients fetch only deltas
- Notify members with lightweight pushes, not full payloads
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- Two members edit the same caption offline; what does everyone see?
- How would you handle an album with 50,000 photos on a low-end phone?
- How do you handle a member being removed while their offline adds are pending?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Functional: create album, invite members, add or delete photos, edit captions, react; works offline and syncs later. Non-functional: convergence (all members see the same state), no lost adds,...
High-Level Design
- Client: local database (SQLite) holding album state plus a queue of pending operations; a background uploader for photo bytes.
- Media Service: resumable uploads return a
media_idafter st...