Skip to content
TeachTrails
System DesignInterviews

Design a News Feed (Instagram, Twitter): System Design

Design a news feed like Instagram or Twitter: fan-out on write vs read, the celebrity problem, feed caches, ranking and cursor pagination, with a live demo.

Sudipta Biswas, AI Engineer

13 min read

Beginner friendly
DESIGN A NEWS FEEDPush posts from friends, pull posts from stars, rank, then scroll.1Postsaved once2Fan-outIDs → followers' feeds3Feed cachelist of post IDs4Rankwhat you'll like5Scrollcursor pagesInstagram, Facebook, X (Twitter), LinkedIn and YouTube home pages

Checking your access…