InterviewForge

Design Instagram (Photo & Feed)

A thorough design of Instagram: photo storage, the news feed fan-out decision, ranking, and the read-heavy social architecture behind a billion-user feed.

Updated 2026-09Medium

Requirements & scope

  • Functional: post photos with captions, follow users, see a ranked feed of followed users' posts, like and comment.
  • Non-functional: feed loads fast (<200ms), posts appear within seconds, the system tolerates celebrity-scale fan-out.
  • Scale: ~1B users, ~100M posts/day, overwhelmingly read-heavy (feed views >> posts).
  • Consistency: likes/comments can be eventually consistent; feed ordering must stay monotonic (no flicker).

Out of scope (covered in detail below)

Stories, direct messages, ads/ranking ML training, explore/discovery, and spam detection — 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