Design Storage Tiering and Lifecycle for Rarely Viewed Google Photos

Last updated: November 29, 2026

Quick Overview

Design how Google Photos moves petabytes of rarely viewed originals from hot storage to colder, cheaper tiers, while keeping thumbnails instant and old photos viewable in full resolution within a couple of seconds when requested.

Google
System Design
Data Engineer
Google
November 29, 2026
Data Engineer
System Design Round
System Design
Medium

0

0

0 solved


Design how Google Photos moves petabytes of rarely viewed originals from hot storage to colder, cheaper tiers, while keeping thumbnails instant and old photos viewable in full resolution within a couple of seconds when requested.

Most photos are viewed a handful of times after upload, so storage cost dominates. Google interviewers ask this to check whether candidates can model access patterns, choose tier policies, and keep user experience intact, including how erasure coding changes durability and cost.

What the Interviewer Expects
  • Characterize access patterns by age and type of object
  • Separate thumbnails and originals into different storage policies
  • Define tier transition rules and the job that applies them
  • Use erasure coding versus replication to trade cost and latency
  • Handle recall latency and prefetching for likely views
Key Topics to Cover
Storage tiers
Erasure coding
Access pattern analysis
Lifecycle policies
Prefetching
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
  • What happens when a 'Memories' feature suddenly surfaces 10-year-old photos to millions of users?
  • How do you measure the cost savings and the latency impact?
  • How do deletes and trash interact with cold tiers?
  • Would you ever tier thumbnails?
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: each media item has thumbnails (several sizes), a display-size rendition and the original. Users scroll their library instantly; opening an item shows the display rendition; download o...

High-Level Design
  • Access log analysis: aggregate reads per item by age and type.
  • Tiers: hot (replicated, SSD-cached), warm (erasure coded on disk, e.g. Reed-Solomon 6+3), cold (wider erasure codes across re...

Submit Your Answer
Markdown supported