Design a news feed
Lesson 39 of 40 · Sys.Micro
Show each user the latest posts from everyone they follow, in milliseconds.
Users follow up to a few thousand accounts and open the app ~10 times a day. The feed shows recent posts from followed accounts, newest or best first. 300 M daily users, 50 M new posts a day. Feed must load in < 200 ms; a post may take a few seconds to appear.
Pull (fan-out on read) and why it is slow
Push (fan-out on write) into precomputed timelines
The celebrity problem and the hybrid approach
Check yourself
Why do feed systems often skip fan-out-on-write for accounts with millions of followers?
Do it in the browser: a real system design tool, a short mission and instant feedback. No install.
Start this lesson — free