Mock Interviewer
Ask Coach
Tap a question to start, or type your own below.
Twitter System Design
Visual Problem Diagram

Scenario
A celebrity you follow just posted, and you open the app expecting that post to show up in your list of people you follow, right next to posts from people you know. The painful failure is when that list will not load, because the system is still copying this one post into 50 million separate follower lists before it will show you yours.
Clarify this problem here, or open Pathway Coach if you want a prep plan first.
Design a short-post network like Twitter. People write a public post, follow other people, and open their own list of posts from the accounts they follow. A friend's post can be placed into each follower's list ahead of time, so opening the app feels immediate. A celebrity's post cannot be copied that way, because tens of millions of followers would each need their own copy and everyone else's list would stall while that work finished. A photo or video can ride along with the post, and deleting a post has to disappear from those lists.
You should support writing and deleting a post, follow and unfollow, the personal list of people you follow, and one person's own posts. Search and what is trending can stay thin. Be ready to explain how a normal post is copied into followers' lists ahead of time, how a celebrity's post is pulled in when someone opens their list instead of copied to every follower, how that list stays in time order as you scroll, and what the reader sees after a post is deleted. State your tradeoffs clearly.
Constraints
Write and delete a short public post. Follow and unfollow people. Open your list of posts from people you follow. Open one person's own posts. Attach a photo or a video. Search posts and see what is trending.
Most opens of that list finish in under 300 milliseconds, so it feels immediate. A post is stored so it is not lost. The list can lag the moment of posting by a few seconds, which readers can tolerate. The service keeps serving that list while reads dwarf writes.
About 300 million people use it in a month. About 500 million new posts a day. Some accounts have 100 million followers or more. Reading the list of people you follow is the heavy load, by a wide margin over new posts.
Stages ahead
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.
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