Design Amazon Photos Storage With Duplicate Detection

Last updated: November 29, 2026

Quick Overview

Design the backend for Amazon Photos that accepts uploads from phones, stores originals durably, avoids storing the same file twice for a user, and generates thumbnails for fast browsing.

Amazon
System Design
Software Engineer
Amazon
November 29, 2026
Software Engineer
Onsite
System Design
Medium

0

0

0 solved


Design the backend for Amazon Photos that accepts uploads from phones, stores originals durably, avoids storing the same file twice for a user, and generates thumbnails for fast browsing.

Prime members get photo storage, so this is a concrete storage question for consumer teams. The interviewer is looking at the upload protocol, content addressing, metadata modeling and how thumbnails are produced at scale.

What the Interviewer Expects
  • Design resumable, chunked uploads from mobile
  • Use content hashes to detect duplicates per user
  • Separate blob storage from a metadata index
  • Generate thumbnails asynchronously and serve through a CDN
  • Plan storage tiering for rarely viewed originals
Key Topics to Cover
Blob Storage
Content Addressing
Resumable Uploads
Metadata Indexing
CDN
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • Should dedup be per user or global, and what are the privacy implications?
  • How would you support near-duplicate detection like burst shots?
  • How would you let users search photos by 'beach' or by face?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

Functional: upload photos and videos, browse a timeline, view full size, delete, and auto-backup from the phone. Duplicate uploads (phone reinstall re-uploading everything) should not consume storage ...

High-Level Design

The client computes a SHA-256 of the file and calls POST /uploads/check with the hash. If the user already has that hash, the server returns the existing photo id and no bytes move. Otherwise it ret...


Submit Your Answer
Markdown supported