Design an Activity Feed for Shared Albums in Google Photos
Last updated: November 29, 2026
Quick Overview
Design the activity feed for Google Photos shared albums that shows who added photos, liked or commented, and notifies members, for albums with a few members up to thousands.
0
0
0 solved
Design the activity feed for Google Photos shared albums that shows who added photos, liked or commented, and notifies members, for albums with a few members up to thousands.
A manageable design question suited to a Google phone screen: it checks basic data modeling for events, grouping bursts of activity (someone adds 200 photos), and read paths for small and large albums. Interviewers want clean APIs and sensible batching more than exotic infrastructure.
What the Interviewer Expects
- Model activity events per album
- Collapse bursts like 'Ana added 200 photos' into one item
- Paginate the feed with a cursor
- Notify members with batching and respect for muted albums
- Handle removed photos and members leaving
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
- How do you show unread counts per member?
- What if a member is removed from an album?
- How would you support thousands of members on a public link album?
- How do you keep the feed consistent if a photo is deleted?
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: events: photos added, comment, like, member joined. Feed per album in reverse time order; grouped bulk adds; unread indicator; push notifications for members.
Non-functional: feed...
High-Level Design
- Album service: membership and media lists.
- Activity store: table
activity(album_id, ts_desc, event_id, actor, type, payload)with primary key ordered by time so one prefix scan returns t...