Design Toutiao's Personalized News Feed With Freshness Guarantees
Last updated: November 29, 2026
Quick Overview
Design the recommendation system for a news app like Toutiao that personalizes articles for each reader while making breaking news appear within minutes of publication.
ByteDance
November 29, 20260
0
0 solved
Design the recommendation system for a news app like Toutiao that personalizes articles for each reader while making breaking news appear within minutes of publication.
Toutiao was ByteDance's first breakout product, and its recommender is the ancestor of the company's later feeds. In this round the interviewer wants a multi-stage architecture, but the twist versus short video is freshness: news items lose value within hours, so cold start for new articles is the core problem, not an edge case.
What the Interviewer Expects
- Lay out retrieval, pre-ranking, ranking, and re-ranking stages with candidate counts
- Handle cold start for articles minutes old with content features and exploration
- Define objectives beyond clicks such as dwell time and dislikes
- Describe real-time feature and model updates
- Address diversity, clickbait, and editorial safety constraints
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 would you insert a must-show breaking news story for everyone in a region?
- How do you detect and demote clickbait titles?
- How would you evaluate freshness offline?
- How do you avoid filter bubbles for heavy readers?
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
- Hundreds of millions of daily users, each refreshing the feed many times; p99 latency around 200 ms for a page of 10 items.
- Hundreds of thousands of new articles per day; a new article should be e...
High-Level Design
Ingestion runs NLP on each article as it arrives: topic and entity tagging, a text embedding, quality and clickbait scores, and near-duplicate clustering. Retrieval pulls a few thousand candidates fro...
Submit Your Answer
ByteDance Machine Learning Engineer Interview Guide
Interview process, tips, and preparation timeline