Design Thumbnail Generation and Serving for Google Photos

Last updated: November 29, 2026

Quick Overview

Design the service that creates several thumbnail sizes for every photo and video uploaded to Google Photos and serves them quickly in the grid view on phones and the web.

Google
System Design
Software Engineer
Google
November 29, 2026
Software Engineer
Technical Screen
System Design
Easy

0

0

0 solved


Design the service that creates several thumbnail sizes for every photo and video uploaded to Google Photos and serves them quickly in the grid view on phones and the web.

A gentler Google screen question that still rewards concrete numbers. The interviewer checks async processing after upload, the choice between precomputing sizes and resizing on demand, and CDN caching with privacy.

What the Interviewer Expects
  • Generate thumbnails asynchronously after upload
  • Choose a small set of precomputed sizes plus on-demand resizing
  • Serve through a CDN with signed, private URLs
  • Store thumbnails separately from originals with cheaper replication
  • Handle reprocessing when formats or sizes change
Key Topics to Cover
async processing
image pipelines
CDN caching
signed URLs
format negotiation
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
  • Would you precompute every size or resize on the fly?
  • How do you keep a private photo's thumbnail from being fetched by others?
  • How would you regenerate thumbnails for 1 trillion photos in a new format like AVIF?
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
  • Users upload billions of items per week. Grid view needs small thumbnails (~256 px), detail view larger (~1024 px), and video poster frames.
  • Grid scroll should load each thumbnail in tens of milli...
High-Level Design
  • Upload writes the original to blob storage and an item_uploaded event to a queue.
  • Thumbnail workers decode the original (HEIC, JPEG, RAW, video), apply EXIF rotation, and produce sizes 256 a...

Submit Your Answer
Markdown supported