Walkthrough: Design a Short Video Feed App

Topics Covered

Step One: Requirements and Constraints for a Short Video Feed

Scope the core flows

Non functional requirements that come from the device

Rough numbers

Platform constraints

Questions that change the design

The happy path in one paragraph

Separating what the client owns

What the interviewer is checking in step one

Design a short video feed, the vertical full screen feed where every swipe starts a new clip, is one of the hardest mobile prompts because the product's core promise is a hardware problem. Video must start the instant the viewer swipes, on a phone with a limited number of video decoders, a few gigabytes of memory, a battery that heats up under sustained decoding and a network that changes every few seconds. This lesson applies the course's six step framework to that prompt and spends most of its time on the playback pipeline, which is where interviewers push.

As with the other walkthroughs, say up front that you are designing the app and its contract with the backend. The recommendation system, the transcoding farm and the CDN exist and you will refer to them, but you are not designing the ranking model. If the interviewer wants to talk about ranking, they will tell you, and that would be a different round.

Scope the core flows

Restate the prompt and propose a scope:

  • A full screen vertical feed. Each item is a short video, typically fifteen seconds to three minutes, that autoplays with sound when it becomes the current item and loops when it ends.
  • Swipe up for the next video and down for the previous one, with the next video starting without a visible spinner on a reasonable network.
  • Overlay actions: like, comment, share and follow, plus the creator name, caption and audio track.
  • A following tab and a recommended tab, both paginated feeds.
  • Recording or picking a video, trimming it, adding a caption and uploading it.
  • Engagement signals sent to the server: views, watch time, completion, skips, likes and shares.

Out of scope unless asked: live streaming, editing effects and filters beyond trim, duets, direct messages, the creator analytics dashboard and ads. Ads are a common follow up; if it comes up, note that an ad is just another feed item with its own tracking rules.

Non functional requirements that come from the device

Fast start. The headline metric is time to first frame after a swipe. For a preloaded next video, the target is effectively instant, within a frame or two of the swipe settling. For the first video after a cold start, a target of around one second on a decent network is reasonable. Smooth playback. Rebuffering, the spinner in the middle of a video, should be rare, measured as a share of play time. Smooth scrolling. The swipe animation must hold the display's frame rate, which means no decoding setup, layout or disk reads on the main thread during the gesture. Memory. Each active player holds decoder buffers and frame buffers, so only a few players can exist at once, and low end Android phones are tighter still. Data and battery. A viewer on cellular data should not burn through their plan, so bitrate adapts to the network and to a data saver setting, and the app does not preload far ahead. Heat. Sustained decoding warms the phone, and when the OS reports thermal pressure the app should step down quality. Accessibility. Captions for speech, labels for overlay buttons and a way to pause autoplay for viewers who need it.

The first frame is a race between the feed call, the first segment and the decoder.

Rough numbers

Put numbers on the feed. Short form video at 720p is commonly encoded around one to two megabits per second, and 1080p around two to four. A thirty second clip at 1.5 megabits per second is about five and a half megabytes. A viewer who swipes through a video every fifteen seconds on average, because many are skipped after two or three seconds, watches four videos a minute. An hour of scrolling at an average of one and a half megabits per second is around six to seven hundred megabytes of video, which is a lot of mobile data. That number justifies adaptive bitrate, a data saver mode and limited preloading.

Segments are short, often one to two seconds each for the first few, so a player can start after downloading only the first segment, a few hundred kilobytes. That is the key to fast start: you never wait for the whole file.

Skips dominate. If half of all videos are skipped within three seconds, then preloading more than the first few seconds of the next video wastes data half the time. That simple observation shapes the preloading policy later in the lesson.

Platform constraints

Hardware video decoders are limited. A phone can typically run only a handful of hardware decoding sessions at once, and the exact number varies by chipset, codec and resolution, so treat it as small and unknown. Creating a new player per feed item will eventually fail on some devices, falling back to slow software decoding or to errors. Memory is the next limit: the OS terminates apps that use too much, and on iOS a memory warning followed by termination looks to the user like a crash. Background behaviour is simple for this product: playback stops when the app leaves the foreground, unless the product supports background audio, which most short video apps do not. Uploads, however, must continue in the background, which brings in the platform background transfer APIs.

Questions that change the design

A few clarifying questions move the design more than the rest. Which markets and devices? If a large share of viewers use low cost Android phones with two or three gigabytes of memory on slow, metered networks, the player pool shrinks, the default rendition drops, data saver is prominent and app size matters for installs. Is there a maximum video length? Fifteen seconds and ten minutes need different buffering and preloading. Are videos ever watched offline? Downloads for flights are a separate feature with licensing and storage questions. How important is the creation side for this version? Some interviewers want the full upload pipeline, others only the feed. Does the product show ads in the feed? Ads come from a separate ad server, have their own tracking events and often stricter rules about when a view counts, so they change the event pipeline.

Also ask what the business measures. For a feed product, it is usually watch time per session and retention. That tells you that start time and stalls are not technical vanity metrics; they directly drive the numbers the company cares about, which is a useful point to make out loud.

The happy path in one paragraph

Narrate the core flow so you and the interviewer share a picture before you draw. The viewer opens the app and a video is already playing within about a second, behind a sharp poster that appeared first. They watch for four seconds and swipe up; the next video is playing before their thumb leaves the glass. They like it with a double tap, swipe twice more, then swipe back down to rewatch one, which plays instantly from cache. They lock the phone; playback stops, and the events from the session are flushed. Later they record a clip, trim it, write a caption and tap post; while they keep browsing, a small progress ring shows the upload, and a notification tells them when the video is live. Each later design decision should serve one of these moments.

Separating what the client owns

Draw a line between client and server responsibilities early, because it frames the whole interview. The server owns ranking, transcoding into renditions, packaging segments, the CDN and counting views. The client owns everything between the feed response and the pixels: scheduling downloads, choosing renditions within what the manifest offers, managing players and decoders, caching, measuring quality and reporting what the viewer did. The upload pipeline is shared: the client produces a good master and delivers it reliably, the server processes it. Saying this in one or two sentences shows the interviewer you know where the mobile problem actually lives.

What the interviewer is checking in step one

They want to see that you scoped a feed and an upload path rather than all of social media, that your non functional list is led by time to first frame and rebuffering, and that your numbers connect data cost and skip rates to preloading. Close with a summary and a check in: the core is instant playback on swipe within memory and data budgets, reliable engagement signals and a resilient upload. Shall I sketch the architecture?

Lead with time to first frame

In this prompt, name time to first frame after a swipe and rebuffering ratio as the two most important requirements in the first five minutes. Every later choice, from player pooling to preloading to segment size, can then be justified by how it moves one of those two numbers.

Basis Lab
That was the last lesson. What next?

Basis Lab writes one for you from a sentence about what you want to be able to do, then teaches it and checks you understood. Your first course is free.

Build my course