Design a Global Concurrency Limiter for Live Video Ingest Slots
Last updated: November 29, 2026
Quick Overview
Design a service that caps how many simultaneous Facebook Live and Instagram Live broadcasts each region's ingest and transcoding fleet accepts, reserving capacity for priority creators and shedding new streams gracefully when full.
Meta
November 29, 20260
0
0 solved
Design a service that caps how many simultaneous Facebook Live and Instagram Live broadcasts each region's ingest and transcoding fleet accepts, reserving capacity for priority creators and shedding new streams gracefully when full.
This is a Meta video infrastructure question because live ingest is capacity bound: each broadcast pins transcoding resources for its whole duration. The interviewer is checking whether you understand concurrency limits versus rate limits, leases with heartbeats, and graceful degradation when capacity is exhausted.
What the Interviewer Expects
- Distinguish limiting concurrent sessions from limiting request rate
- Use leases with heartbeats so dead broadcasts release slots
- Reserve capacity classes for verified creators or major events
- Degrade by offering lower quality or another region before rejecting
- Keep slot accounting consistent under failover
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- How do you handle a planned event like a World Cup stream that needs reserved capacity?
- What if a broadcaster's phone loses network for 20 seconds?
- How would you split slots between Facebook and Instagram fairly?
- How do you size the reserve pool?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Functional: before a broadcast starts, the client asks for an ingest slot. Admission returns an ingest endpoint plus a quality profile (1080p, 720p) or a rejection with retry guidance. Slots are r...
High-Level Design
Clients call the live admission service in the nearest region. Each region has a slot coordinator that tracks capacity per ingest cluster, measured in transcode units (a 1080p ABR ladder costs...