Design Zoom
Understanding the Problem
🎥 What is Zoom? Zoom is a video conferencing service. People join a meeting from a link, and everyone can see and hear everyone else in real time, share their screen, and talk over each other the way they would in a room. Google Meet, Microsoft Teams, Skype and FaceTime are the same kind of product. The defining constraint is interactivity: a conversation breaks down if your voice reaches others more than a few hundred milliseconds late.
You'll be asked this as "design Zoom," "design Google Meet," or "design Skype or FaceTime." They're the same problem. FaceTime and most Skype calls are one-to-one, which allows a simpler peer-to-peer design, and we'll cover that inside the topology deep dive. You may also be asked how this differs from WhatsApp. That comparison is a good way to show you understand what makes real-time media special, so we give it its own deep dive at the end.
Functional Requirements
Core Requirements
- Users should be able to create a meeting and join it with a link or ID.
- Participants should be able to send and receive audio and video in real time, in meetings from 2 to a few hundred people.
- Participants should be able to share their screen.
Below the line (out of scope)
- In-meeting chat, reactions, breakout rooms and whiteboards.
- Dial-in by phone (PSTN).
- Webinars with tens of thousands of viewers. That's one-to-many broadcasting, a different design (see /system-design/live-streaming).
- Calendar integration and scheduling.
Non-Functional Requirements
Ask your interviewer for the numbers. We'll assume 10 million concurrent participants at peak, in about 2 million concurrent meetings (most meetings are small), with a maximum of 500 participants in one meeting.
Core Requirements
- One-way audio latency should be under ~150 ms, and never above ~300 ms. Beyond that, people start talking over each other.
- Calls should degrade gracefully on poor networks (packet loss, jitter, low bandwidth): video quality drops first, audio last.
- The system should work from behind home routers and strict corporate firewalls.
- Meetings should keep going through a server failure, with at most a brief glitch.
- Media must be encrypted in transit. End-to-end encryption should be an option.
Below the line (out of scope)
- Storing media. Nothing is persisted unless the meeting is recorded.
- Guaranteed delivery of every frame. A late frame is worthless and is dropped.
The math:
- Per participant: 720p video is about 1.5 Mbps, and Opus audio about 30 kbps. If each client sends three video resolutions at once (simulcast, explained below), that's roughly 2.2 Mbps up. Receiving one large speaker video plus 8 thumbnails at 150 kbps is about 1.5 + 8 × 0.15 ≈ 2.7 Mbps down.
- Total media through our servers: 10M participants × ~2.2 Mbps in ≈ 22 Tbps in, and roughly 25 Tbps out.
- Media servers: if one media server forwards on the order of 5-10 Gbps, we need several thousand of them, spread across regions close to users.
- Signaling (join, leave, mute, who's speaking): a few messages per participant per second at most, tiny by comparison.
The latency budget changes everything. A 150 ms one-way budget has to cover capture, encoding, the network path, any server hop, a jitter buffer, decoding and playback. There's no room for queues, retries over TCP, disk writes or a round trip to a far-away region. Every component on the media path must be in memory, close to the user, and willing to drop data rather than wait for it.