News Feed Design
Design a social news feed, choosing fan-out on write, on read or a hybrid, and keep timelines fast for accounts with huge or tiny followings.
3 objectives 5 steps about 105 min
Learn it step by step
Read the lessons in order, try the practice checks, then prove the skill with the knowledge check.
This skill page is a public outline. Its lessons and knowledge check appear here as subject-matter experts approve them.
Learning objectives
- Compare fan-out on write, fan-out on read and hybrid strategies using follower distribution and read/write rates.
- Design timeline storage and caching, including the celebrity problem and cursor pagination.
- Add ranking and media to the feed without breaking latency targets, and describe the degraded modes.
Lesson plan
5 steps, about 105 min · 4 of 4 lessons available so far
- Scoping the feed and estimating fan-out Worked example · 20 min
- Push, pull and hybrid timelines Concept · 25 min
- Timeline caches, celebrities and pagination Worked example · 25 min
- Ranking, media and graceful degradation Concept · 20 min
- Feed design check Knowledge check · 6 questions
Practise it
Simulate fan-out cost for push, pull and hybrid strategies on a synthetic power-law follower graph, then write a feed design doc that picks a celebrity threshold from your measured numbers.
References
Hard prerequisites
Unlocks
Nothing depends on this skill yet.
On these roadmaps
Progress and evidence for this skill are shared across all of them.