Loading…
While this loads — quick one
Every subscriber must get each event. A queue, or pub/sub?
Loading…
While this loads — quick one
Every subscriber must get each event. A queue, or pub/sub?
Loading the question…
While this loads — quick one
Every subscriber must get each event. A queue, or pub/sub?
System design interview question
Twitter's home timeline, Facebook's News Feed, Instagram's feed: “design a news feed” is one of the most-asked system design interview questions, because a feature that looks small hides the hardest part of the job. The read path has to feel instant, and a single write can touch millions of rows. Here is how to walk into it — and then how to practise it until the answer is yours.
Practise News Feed
Free — no account needed.
A social app lets people follow each other and post short updates, some with photos. Opening the app shows a home feed: the newest posts from everyone you follow, and it must appear in well under a second, because people open it dozens of times a day. Reads outnumber posts by about a hundred to one. When someone posts, it is fine if followers see it a few seconds later, but the post itself must never be lost, and the person posting must not wait while the app works out who should see it. Photos are large and are viewed far more often than they are uploaded, by people all over the world.
Every phrase that matters in the brief is a requirement in disguise. Spot them before you draw a single box.
“it must appear in well under a second”
A feed that is already assembled when it is asked for, held in memory.
“Reads outnumber posts by about a hundred to one”
Do the expensive work once per post, not once per read.
“the post itself must never be lost”
A durable store the post is written to first.
“the person posting must not wait while the app works out who should see it”
Hand the fan-out to a line of work done in the background.
“viewed far more often than they are uploaded, by people all over the world”
Serve photos from locations near each viewer.
The same design always gets the same score, with the reason behind every requirement — then defend it against the trade-offs above.
The answers are not on this page on purpose. Build the design, and these are asked — and marked — once it is submitted.
© 2026 PlayCloudLabs. All rights reserved. Not affiliated with Amazon Web Services.