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.

Instagram Feed System Design

Visual Problem Diagram

Instagram Feed System Design architecture diagram

Scenario

Picture a creator on a train with a weak phone signal who taps Share on a short video called a Reel. The app says posted within two seconds, so the creator puts the phone away. A few minutes later a friend opens the app and taps play, but the video stutters or shows only a still picture, because the uploaded file is still being converted into smaller versions that a phone can stream. The same moment can also be hard on the system in another way, because some creators have about 50 million followers, and a single post from one of them has to show up in all of those home feeds. The home feed of a photo and video app is the part of the system that has to handle both problems at once.

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?

This problem asks you to design the home feed of a photo and video sharing app like Instagram. A creator posts a photo or a short video called a Reel. The people who follow that creator open the app, scroll a home feed made of posts from the accounts they follow, and tap play on a video. They can also like a post, watch a Story (a photo or video that disappears after about a day), and open a profile page.

In the interview you need to explain six things. First, how the app can tell the creator "posted" before every playable size of the video exists. Second, what a friend sees while the video is still being prepared. Third, how a creator with about 50 million followers avoids having one post copied onto every follower's feed at the moment of posting. Fourth, how one scroll returns a short list of posts and links to the media instead of the media itself. Fifth, what the feed shows when ordering the posts takes too long. Sixth, how likes on a very popular post are counted without slowing the feed down. The Explore page, where the app suggests accounts you do not follow, can stay thin.

Constraints

Functional

Post a photo or a Reel. Scroll a home feed of people you follow. Like and comment. Watch a story that lasts about 24 hours. Open a profile.

Non-functional

Most feed lists return in under 300 milliseconds, so the scroll does not wait on the video bytes. Playback should start within a few seconds. The service stays up about 99.9% of the time. Like totals can be briefly behind.

Scale

On the order of a billion users and hundreds of millions daily, with tens of millions of uploads a day. The hot action is opening the home feed. Video leaving the network dominates cost, and one creator can have about 50 million followers.

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