System design newsfeed
Feed — push vs pull
Fan-out on write vs read. Hybrid for celebrities. Draw both paths.
Fan-out on write vs read. Hybrid for celebrities. Draw both paths.
Precompute vs rank-at-read. Cache the first page. Invalidate on mute/block.
100 follows, 5 posts/user/day. Writes if you fan-out on write. Storage of timelines.
LC 355. In-memory. Merge-k latest tweets. Then say what production adds.