Design Profile Photo Changes That Show Up Everywhere Within Seconds

Last updated: November 29, 2026

Quick Overview

Design how a new Facebook profile photo replaces the old one across feed posts, comments, chat heads, search results, and other users' friend lists quickly, despite heavy caching at every layer.

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

0

0

0 solved


Design how a new Facebook profile photo replaces the old one across feed posts, comments, chat heads, search results, and other users' friend lists quickly, despite heavy caching at every layer.

Profile pictures are embedded in nearly every Meta surface and cached aggressively at the CDN, server, and device. The interviewer checks whether you can use immutable versioned URLs and a small pointer lookup instead of trying to purge caches everywhere.

What the Interviewer Expects
  • Store images under immutable, versioned URLs
  • Keep a small per-user pointer to the current photo
  • Cache the pointer briefly and invalidate on change
  • Let devices refresh via a lightweight signal
  • Handle privacy of old photos
Key Topics to Cover
Cache invalidation
Immutable URLs
CDN
Pointers
Client caching
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
  • Why not purge the CDN for the old URL?
  • How do clients that cached the old URL find out?
  • What if the user reverts to a previous photo?
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: user uploads a new profile photo; every surface shows it shortly after; old photos remain in the profile pictures album subject to privacy settings.

Non-functional: profile photos...

High-Level Design
  • Upload goes through the normal photo pipeline producing renditions stored at URLs that contain a content hash, for example /p/{user}/{hash}_{size}.jpg. Those URLs never change content, so they can...

Submit Your Answer
Markdown supported