Design the Personalized Yahoo Homepage News Feed With Edge Caching
Last updated: November 29, 2026
Quick Overview
Design the service that assembles the Yahoo homepage news stream for each visitor, mixing editorially curated top stories with personalized recommendations and ads. Pages must render fast worldwide while news breaks every minute.
Yahoo
November 29, 20260
0
0 solved
Design the service that assembles the Yahoo homepage news stream for each visitor, mixing editorially curated top stories with personalized recommendations and ads. Pages must render fast worldwide while news breaks every minute.
The Yahoo homepage and Yahoo News front pages get enormous traffic and combine editorial picks with personalized content. Interviewers check that you split cacheable shared content from per-user content, use CDNs well, and keep breaking news fresh.
What the Interviewer Expects
- Split the page into shared modules and a personalized stream
- Cache shared modules at the CDN with short TTLs and purge on breaking news
- Precompute candidate stories and rank per user at request time with a budget
- Explain cursor pagination for infinite scroll and dedupe of seen stories
- Handle logged-out users with segment-level personalization
- Cover graceful fallback when the ranking service is slow
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 push a breaking news banner to all users within 30 seconds?
- How do you avoid showing the same story twice across pages of infinite scroll?
- How would you run an A/B test on the ranking model safely?
- How do you keep ads from appearing next to sensitive news?
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: top stories module (editorial), personalized infinite stream, ad slots, region and language editions. Non-functional: time to first byte under 200 ms globally, new top story visible within...
High-Level Design
- Content ingestion: articles from Yahoo News and partners land in a content store with metadata (topics, entities, region, safety labels).
- Candidate service: every few minutes, builds pools...