Design Background Photo Backup From Android Phones for Google Photos
Last updated: November 29, 2026
Quick Overview
Design the Google Photos backup system that uploads new photos and videos from phones in the background, respecting battery, data plans and storage quota, and never uploading the same item twice even after reinstalling the app.
0
0
0 solved
Design the Google Photos backup system that uploads new photos and videos from phones in the background, respecting battery, data plans and storage quota, and never uploading the same item twice even after reinstalling the app.
Photos backup is among the highest-volume upload systems at Google, and the hard parts are on the edge: background execution limits, metered networks, and identity of media across reinstalls and edits. Interviewers check the client scheduler, the dedup protocol and server-side processing at scale.
What the Interviewer Expects
- Detect new media on device and queue it durably
- Schedule uploads under battery, network and Doze constraints
- Deduplicate using content hashes checked before upload
- Use resumable uploads and server-side processing
- Handle quota, storage-saver compression and edits
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
- What identifies a photo when the user reinstalls the app or switches phones?
- How do you back up a 4 GB 4K video on a phone that is rarely on Wi-Fi?
- How do edited versions of a photo relate to originals?
- How would you handle 1M users all plugging in phones at 11 pm?
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: watch device folders; back up photos and videos in original or storage-saver quality; Wi-Fi only option; show progress; free up space after backup; work across reinstalls without re-up...
High-Level Design
- Client media observer: listens to the MediaStore content changes and scans on startup; writes items to a local backup queue (SQLite) with state.
- Client scheduler: uses WorkManager jobs wit...