Design Ingest Routing From Edge PoPs to Transcoding Origins

Last updated: November 29, 2026

Quick Overview

Design the system that accepts broadcasters' RTMP streams at edge points of presence worldwide and decides which origin data center transcodes each stream, balancing latency, origin capacity, and failures as tens of thousands of channels go live.

Twitch
System Design
Software Engineer
Twitch
November 29, 2026
Software Engineer
System Design Round
System Design
Hard

0

0

0 solved


Design the system that accepts broadcasters' RTMP streams at edge points of presence worldwide and decides which origin data center transcodes each stream, balancing latency, origin capacity, and failures as tens of thousands of channels go live.

Twitch has written publicly about routing live ingest traffic from PoPs to origins based on capacity, because transcoding is compute-heavy and origins fill unevenly. A video infrastructure loop uses this to see whether you can design a control plane with real-time capacity signals, make placement decisions under constraints, and handle a stream that must never stutter.

What the Interviewer Expects
  • Separates the data plane (moving bytes) from the control plane (placement decisions)
  • Defines the placement inputs: network cost, origin compute headroom, stream needs
  • Keeps placement sticky for a live stream and explains when to move one
  • Handles origin failure with fast re-placement and minimal viewer impact
  • Plans for daily go-live peaks and big events
  • Mentions observability and safe rollout of routing policy
Key Topics to Cover
RTMP ingest
Control plane
Capacity-aware placement
Anycast and PoPs
Failover
Stickiness
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • A large origin loses half its transcoders. Walk through the next 60 seconds.
  • How do you place a partner channel that needs a full transcode ladder versus a small channel that gets source only?
  • How would you test a new placement algorithm without risking live streams?
  • Should placement be centralized or decided at each PoP?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

Functional: broadcasters connect to the nearest PoP; each new stream is assigned to an origin for transcoding; the assignment is published so the delivery system knows where to fetch renditions. Non-f...

High-Level Design

PoPs terminate RTMP (authentication by stream key, basic validation) and forward the stream over the private backbone. A routing service holds a near-real-time view of every origin: transcoder slots f...


Submit Your Answer
Markdown supported

Related Questions