Mock Interviewer

Ask Coach

Ask Coach
Clarify requirements before you design — kept separate from your stage notes.

Tap a question to start, or type your own below.

News Feed System Design

Visual Problem Diagram

News Feed System Design architecture diagram

Scenario

Election night: posts per second 10× normal and timelines lag 30 minutes unless you already planned hybrid fan-out and ranker timeouts. Users tolerate stale order more than an empty feed—the interview mirrors Facebook/Twitter feed mechanics with ranking called out.

Design a news feed where users publish posts and followers see a ranked or chronological timeline. This is the classic fan-out on write vs read problem with celebrity exceptions and ranking latency budgets.

You should support post creation, follow graph, home feed pagination, reactions, and ranking. Be ready to explain hybrid fan-out, degradation, and cursor pagination.

Constraints

Functional

Create post, follow graph, home feed, like/comment, rank or chronological mode, pagination

Non-functional

< 300 ms feed p95, high availability, seconds staleness on rank OK

Scale

1B users, 500M DAU, hundreds of millions posts/day, reads >> writes

Stages ahead

1Requirement Analysis
2API Design
3High-Level Design
4HLD Extensions
5Trade-offs

Log in to start practicing

Preview the problem below. Sign in to start your timed session, save progress, and use the AI coach.