Live Channel Recommendations With Constantly Changing Inventory
Last updated: November 29, 2026
Quick Overview
Design the ML system behind a 'recommended live channels' row on the Twitch home page, where the candidate set is only channels live right now, many channels have little history, and what is interesting changes minute to minute.
Twitch
November 29, 20260
0
0 solved
Design the ML system behind a 'recommended live channels' row on the Twitch home page, where the candidate set is only channels live right now, many channels have little history, and what is interesting changes minute to minute.
Discovery on Twitch differs from on-demand video because inventory disappears when a stream ends and new streams appear constantly, often from small creators. Interviewers want to see candidate generation over a live index, features that capture right-now signals, explicit handling of creator cold start, and evaluation beyond click-through.
What the Interviewer Expects
- Restricts candidates to a fresh live index updated within seconds
- Combines long-term user taste with real-time stream features
- Addresses cold start for new and small streamers explicitly
- Chooses an objective tied to watch time and return visits, not just clicks
- Plans offline and online evaluation, including creator-side metrics
- Handles latency and feature freshness at serving
Key Topics to Cover
How to Approach This
- Start by mapping the business objective to a concrete ML objective and metric.
- Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
- Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
- Address the serving latency budget and whether batch or real-time inference is needed.
- Think about the data flywheel: how user feedback improves the model over time.
Possible Follow-up Questions
- How do you avoid the rich-get-richer loop where big channels take every slot?
- A streamer changes category mid-stream. How fast do recommendations reflect that?
- What would you log to make offline evaluation possible for content that no longer exists?
- How would you detect and counter viewbotting in your training data?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice ML System Design ProblemsSample Answer
Requirements
Serve about 20 live channels per home load with p99 under about 150 ms. Objectives: viewer watch time and return rate, plus a healthy distribution of viewers to creators. Constraints: the candidate po...
High-Level Design
A live index service consumes stream start, end, and metadata change events, keeping each live channel's category, language, tags, current viewers, viewer trend, chat velocity, and stream embedding. C...