InterviewForge

Design a News Feed (Social Feed)

A top-notch walkthrough of a social news feed: the fan-out-on-write vs pull decision, ranking, caching, and the architecture that makes feeds fast at a billion users.

Updated 2026-09Medium

Requirements & scope

  • Functional: users post content; followers see a ranked feed of recent posts; like/comment.
  • Non-functional: feed loads in <200ms, new posts appear within seconds, ranking is pluggable.
  • Scale: ~1B users, ~100M posts/day, read-heavy.
  • Consistency: feed ordering can be eventually consistent; a post may take a second to appear.

Out of scope (covered in detail below)

Ads injection, the ranking model training pipeline, content moderation, and A/B testing infra — deferred and discussed in the dedicated section.

Unlock the full guide

Premium members get every DSA, system design, company and role interview guide — plus AI practice, mock interviews, and analytics.

Unlock with Premium