All problems
Advanced·💬 Social Media·Facebook · Instagram · LinkedIn

Design
News Feed Ranking System

Design the backend for a social network news feed that aggregates and ranks posts from friends/follows at massive scale.

This is a Low-Level Design (LLD) problem. New to LLD vs HLD? Start here.

#Distributed Systems#Fan-out#Ranking
6F + 3NF requirements inside

01 -  Why interviewers ask this

It isolates the hardest part of Instagram/Facebook — ranking at scale — and specifically tests whether you know the fan-out-on-write vs. fan-out-on-read trade-off for celebrity accounts.

02 -  Where this system exists in the real world

You interact with this design every day.

Facebook/Instagram/LinkedIn feed ranking

News aggregator personalized feeds

E-commerce personalized product feeds

03 -  What you'll master

Solve this once. Know it forever.

01

Choose fan-out strategy based on follower count

02

Design a candidate-retrieval-then-rank pipeline

03

Paginate a dynamically-ranked feed correctly

04 -  What you'll design

6 functional · 3 non-functional requirements.

Aggregate posts from all accounts a user follows into one feed

5 more requirements inside

Sign in to unlock the full brief and start designing

05 -  Companies that ask this

You may face this exact question in your next interview.

F
Facebook
I
Instagram
L
LinkedIn

Ready?

Open the canvas.
Design it yourself.

See all requirements, use staged hints, run your code, and compare with community discussions - all on the same canvas.