Design the Transcoding System
The live video pipeline lesson walked the whole path from a broadcaster's encoder to a viewer's player. One box in that path did the heavy lifting: the origin that turns a single incoming stream into several renditions the player can switch between. This lesson pulls that box out and treats the fleet behind it as its own design. Interviewers do this on purpose. The end-to-end pipeline is where you show breadth, and the transcode fleet is where they check whether you can go deep on a genuinely hard resource-scheduling problem.
What makes it hard is that live transcoding is unforgiving in a way most batch jobs are not. Encoding a movie file for a video-on-demand library is embarrassingly parallel and can take its time: chop it into chunks, encode them on any spare machine, stitch the result back together. A live stream has none of that slack. It arrives as a continuous feed. It has to be encoded as fast as it plays for the whole broadcast, and there is no chunk to hand off later. One worker owns a stream for its whole life. Fall even a second behind real time and viewers see a stall. So the fleet is a real-time scheduling problem: place each stream on a healthy worker, keep every worker inside its capacity, and never let a broadcast go dark.
- 1 diagram
- 5 sections
- about 40 min
Premium lessonTwitch interview guide
These took digging.
What candidates walked out with, from 20,000+ reports, forum threads behind logins and write-ups in Chinese. Then solved step by step.
100 companies. Checked every month.
Unlock all 100 companies$49 a year · less than $1 a week · Cancel anytime
Twitch interview guideKnow what Twitch asks before you walk in.
14 coding · 5 system design · 39 behavioral questions
Get their questions first.
InterviewLegend is independent and not affiliated with or endorsed by any company it covers.