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

On election night you post an update and expect friends to see it on their home screen within seconds. The painful failure is a home screen 30 minutes behind, because posts are arriving at about 10 times a normal night and each one is copied to every follower before anyone can read.

Stuck on where to start? Ask Coach

Clarify this problem here, or open Pathway Coach if you want a prep plan first.

Free Coach trial
How should I start prep?

You write a post. People who follow you see it on a home screen ordered by time or by what matters most. You like or comment. You scroll for older posts without jumping back to ones you already passed. You unfollow or block someone and they leave your screen.

You need to explain how a new post reaches followers without making the writer wait for every follower to update. You need to explain what changes when one person has millions of followers. You need to explain how ordering by what matters stays fast. You need to explain what you show if that step is slow. You need to explain how the next page stays stable while new posts keep arriving. You need to explain how a photo or a link preview is added without blocking the post. Ads and push alerts can stay thin.

Constraints

Functional

Create a post. Follow people. Open a home screen. Like or comment. Order the screen by time or by what matters most. Ask for the next page.

Non-functional

Most home screens come back in under 300 milliseconds, so the open feels instant. The screen stays available. An order that is a few seconds old is fine. If ordering is slow, still show the posts you already have.

Scale

About 1 billion accounts, and 500 million people active in a day. The hot action is opening the home screen. Hundreds of millions of posts are written a day. Reads far outnumber those writes, and the reads dominate.

Stages ahead

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

Not ready to design yet?

Try the free Coach trial — ask how to prep, what to practice first, or how InterviewCrafted works. Sign in when you want to start this problem.

Try Coach free

Log in to start practicing

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

Want full access now? View Pro pricing