Design the Viewing Data Pipeline Behind Weekly Top 10 Charts
Last updated: November 29, 2026
Quick Overview
Design the pipeline that turns raw playback events into the weekly Top 10 lists per country and globally, ranked by hours viewed and views, published on a fixed schedule with numbers that are correct and reproducible.
Netflix
November 29, 20260
0
0 solved
Design the pipeline that turns raw playback events into the weekly Top 10 lists per country and globally, ranked by hours viewed and views, published on a fixed schedule with numbers that are correct and reproducible.
Netflix publishes Top 10 lists by country every week and shows Top 10 rows inside the product, so the numbers are public and must be defensible. Interviewers check how the candidate handles late and duplicate events, defines the metric precisely, and separates a reproducible batch truth from a fresher in-product approximation.
What the Interviewer Expects
- Define the metric precisely, including what counts as a view
- Design ingestion with deduplication and late-event handling
- Partition storage by event date and country for efficient recompute
- Make the published weekly run reproducible and auditable
- Offer a streaming approximation for in-product rows and explain how it reconciles
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 would you detect and exclude bot or test-device traffic?
- How would you backfill if a bug undercounted one device type for a month?
- How would you handle a title whose runtime changes after release?
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
Inputs: playback heartbeats and stop events from all devices. Outputs: per country and global, per week (Monday to Sunday), the top 10 films and shows by views, where views = hours viewed divided by r...
High-Level Design
Devices send events to a regional ingest tier that writes to Kafka. A streaming job (Flink) sessionizes events per (profile, title, session), dedupes by event id, and writes session summaries (watched...