Design Camera Roll Backup and Thumbnailing for OneDrive Photos
Last updated: November 29, 2026
Quick Overview
Design automatic photo and video backup from phones to OneDrive, including duplicate detection, thumbnail generation for fast gallery browsing, and handling of a first-time backup of 20,000 photos.
Microsoft
November 29, 20260
0
0 solved
Design automatic photo and video backup from phones to OneDrive, including duplicate detection, thumbnail generation for fast gallery browsing, and handling of a first-time backup of 20,000 photos.
A media upload question tied to the OneDrive mobile app. The interviewer looks for background upload constraints on iOS and Android, content hashing to skip duplicates, and a server-side processing step for thumbnails and metadata so the gallery loads fast.
What the Interviewer Expects
- Uploads in the background with OS constraints (Wi-Fi only, charging) and resumable sessions
- Hashes content to skip files already in the cloud
- Generates multiple thumbnail sizes server side asynchronously
- Extracts metadata (date taken, location) to build the timeline
- Prioritizes recent photos in the first backup
- Handles HEIC and video formats
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
- How do you avoid uploading the same photo twice when the user reinstalls the app?
- How does the gallery show 20,000 photos without downloading them?
- What should happen if the user deletes a photo on the phone?
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
Automatic backup of new photos and videos, plus an initial backup of the whole camera roll. Respect user settings (Wi-Fi only, include videos). Gallery on any device shows thumbnails grouped by date q...
High-Level Design
Phone app: observes the photo library for new assets, keeps a local table of asset id -> upload state and content hash, and uses OS background transfer APIs for uploads. Upload service: checks...