Design Cloud Multiplexed Live Video for On-Prem Cameras

Last updated: November 29, 2026

Quick Overview

Design the system that lets many users watch the same camera live from a browser or phone while the camera, sitting behind a customer firewall on a limited uplink, sends at most one upstream copy of the stream.

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

0

0

0 solved


Design the system that lets many users watch the same camera live from a browser or phone while the camera, sitting behind a customer firewall on a limited uplink, sends at most one upstream copy of the stream.

Verkada cameras keep footage on device and only stream when someone asks, and the cloud multiplexes live video so a school's 30 staff watching one hallway during an incident do not saturate the site uplink. The interviewer probes NAT traversal, fan-out, latency, and what happens when the uplink is poor.

What the Interviewer Expects
  • Uses an outbound persistent control connection from camera to cloud to avoid inbound firewall rules
  • Pulls one upstream stream per camera per quality and fans out at a regional relay
  • Discusses protocols (WebRTC or low-latency HLS) and the latency trade-off
  • Handles adaptive bitrate and the camera producing a lower quality substream
  • Covers authorization per stream and session teardown when the last viewer leaves
  • Considers peer-to-peer local viewing when the viewer is on the same LAN
Key Topics to Cover
live streaming
fan-out relays
NAT traversal
WebRTC
adaptive bitrate
multi-tenancy
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
  • How do you keep startup latency under two seconds when the stream is not already flowing?
  • A video wall shows 64 cameras at once. How does the design change?
  • How do you prevent one org's incident traffic from degrading relays for others?
  • How would you audit who watched which camera and when?
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: start live view from web and mobile, many concurrent viewers per camera, quality switching, audit log. Non-functional: under 2 s to first frame, under 1 s glass-to-glass on good links, at ...

High-Level Design

Each camera holds an outbound TLS control channel to a regional gateway (it also carries the thumbnails and metadata). A viewer asks the API for a session; the API authorizes, picks the relay nearest ...


Submit Your Answer
Markdown supported

Related Questions