Design a News Feed
Prompt: "Design the home feed for a social network like Facebook, Instagram or X."
The feed is the canonical read-scaling problem with a twist: the "celebrity problem". Interviewers want to hear you compare fan-out on write and fan-out on read, and land on a hybrid with numbers.
In this lesson
- Learning objectives
- 1. Requirements
- 2. Estimates
- 3. Core entities and API
- 4. High-level design
- 5. Deep dives
- 6. Operations and cost
- 7. What each level adds
- Self-check
Questions covered
- Design a news feed. Push or pull?
- How would you add ranking to the feed?
This lesson is part of System Design Interview: Concepts, Patterns & Real Designs. Unlock the full course to read it, take the quiz and track your progress.