Design Notification Batching and Digest Emails for YouTube Subscriptions

Last updated: November 29, 2026

Quick Overview

Design the system that decides whether to notify a YouTube user immediately about new uploads from subscribed channels or roll them into a daily or weekly digest email, respecting each user's bell settings.

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

0

0

0 solved


Design the system that decides whether to notify a YouTube user immediately about new uploads from subscribed channels or roll them into a daily or weekly digest email, respecting each user's bell settings.

YouTube notification volume is a real product tension: users subscribe to hundreds of channels, and too many pushes drive them to disable notifications entirely. In a Google onsite this checks event aggregation, per-user scheduling and how to bound fan-out from channels with tens of millions of subscribers.

What the Interviewer Expects
  • Model per-subscription preferences (all, personalized, none) and per-user digest frequency
  • Design the pipeline from upload event to per-user pending items
  • Explain digest assembly and send-time scheduling in the user's local time
  • Bound fan-out for mega channels
  • Define metrics such as notification opt-out rate and digest open rate
Key Topics to Cover
Fan-out on write vs read
Aggregation windows
Per-user scheduling
Ranking
Engagement metrics
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
  • How would you choose which 5 of 40 pending uploads appear in a digest?
  • How do you avoid emailing about a video the user already watched?
  • What if a creator uploads and deletes a video within minutes?
  • How do you make the system cheaper for users who never open digests?
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: when a channel uploads, subscribers with the bell set to 'all' get a push now; others accumulate items for a digest sent daily or weekly at a chosen local time; items already watched a...

High-Level Design
  • Upload event stream (Pub/Sub) emits video_published(channel, video, ts) after processing finishes.
  • Subscription store sharded by channel, with each subscriber's bell setting.
  • **Fan-out...

Submit Your Answer
Markdown supported