Skip to main content

Design a News / Developer Activity Feed

Design a home timeline showing recent posts/commits from followed users or repositories at low read latency.

Official Reference

Model Answer & Explanation

Use a hybrid fan-out: for normal users (<10k followers), fan-out-on-write pushes post IDs into followers’ Redis sorted-set timelines asynchronously. For celebrities/mega-repos, skip fan-out-on-write (avoiding millions of writes) and merge their recent posts at read time (fan-out-on-read) before hydrating post details.

Follow-up Interview Question · What happens in Redis if an inactive user hasn’t logged in for a year—do you still fan out to them?

Module Context & References

System Design · Widely asked design scenarios The 80/20 classic architecture prompts: requirements, data model, bottlenecks & tradeoffs
Personal Notes · Markdown

Technologies & Interview Topics Covered

Switch between short-term interview tracks and long-term 80/20 engineering depth to practice JavaScript internals, React rendering and hooks, timed frontend machine coding UI challenges, MeetaPro FG300, Blind 75 & NeetCode 150 DSA patterns, Python & FastAPI APIs, PostgreSQL query optimization & MVCC, Redis caching, Applied AI RAG pipelines & evaluations, and distributed system design.