Back to Presentations
System Design 19 slides ~29 min

System Design: News Feed at Scale

Fan-out strategies, timeline generation, caching layers, celebrity problem, and real-world tradeoffs.

system-designarchitecturescalingcachingdistributed-systems

Topics Covered

Key Takeaways

Here are the key takeaways. First, use a hybrid fan-out approach — push for regular users, pull for celebrities, and merge on read to get the best of both worlds. Second, implement multi-layer caching at the browser, C-D-N, Redis, and database levels, each with appropriate time-to-live values. Third, make the write-read trade-off deliberately by pre-computing timelines on write to optimize read latency. And fourth, rank by predicted relevance using M-L models instead of pure chronological order to boost engagement. Next steps are to study Twitter's timeline architecture, read Instagram's feed ranking papers, and practice implementing Redis cache patterns for high-throughput systems.

What's Inside

19
Slides
~29
Minutes
17
Topics
Rich elements: listmermaidimagecardsstatscode

Tags

system-designarchitecturescalingcachingdistributed-systems
Open in Studio & customize

Use this presentation as a starting point — edit the content, change the theme, or generate a similar one with AI.