Design a Video Conferencing with Document Sharing

Hard45 min
1 / 30
System design answer

Design a Video Conferencing with Document Sharing

Hard45 min30 sections
understanding•11 min read

Problem Statement: Converged Real-Time Media and Document Collaboration

Frames the product as a dual-plane system combining low-latency media transport with strongly ordered document synchronization, not merely a video call with a file viewer.

Problem Statement

Design a platform where participants join a video conference and simultaneously view, annotate, or co-edit shared documents within the same session interface. The system must handle multi-party audio/video with sub-200ms glass-to-glass latency, real-time document operations with conflict-free convergence, presence and cursor tracking, in-call chat, screen sharing with annotation overlays, session recording with transcription, and role-based access control governing who can edit, view, or present.

This is not a video call with a PDF viewer bolted on. The document collaboration plane must guarantee that every participant sees the same document state within 100ms of an edit, even when 40 people type concurrently. The media plane must deliver adaptive-quality video to 500 participants in a town-hall layout while keeping the active speaker's stream under 150ms. These two planes have fundamentally different consistency, latency, and durability requirements, and the architecture must keep them cleanly separated while presenting a unified user experience.

Why This Problem Is Distinctive

A pure video conferencing system like Zoom optimizes for media transport: SFU routing, simulcast, jitter buffers, and adaptive bitrate. A pure document collaboration system like Google Docs optimizes for operation ordering: Operational Transformation or CRDTs, version vectors, and deterministic convergence. This design must solve both simultaneously within one session context, plus the cross-cutting concerns that emerge only when they intersect: annotation overlays that reference document positions, recording pipelines that capture both media and document state, and access control that spans media room membership and document permissions.

The Four Architectural Planes

  1. Media Plane: SFU-based WebRTC transport for audio, video, and screen share. Handles NAT traversal, adaptive bitrate, simulcast, and recording capture.
  2. Collaboration Plane: WebSocket-based document sync using Operational Transformation or CRDTs. Handles concurrent edits, presence cursors, annotations, and version history.
  3. Session Plane: REST and event-driven orchestration for room lifecycle, participant management, roles, chat, notifications, and recording metadata.
  4. Persistence Plane: Durable storage for documents, versions, recordings, transcripts, chat history, and audit logs.

A strong interview answer keeps these planes separate. The media plane is loss-tolerant and ephemeral. The collaboration plane is loss-intolerant and ordered. The session plane is transactional. The persistence plane is eventually consistent for analytics but strongly consistent for document state.

Public Operating Baseline

Zoom reported over 300 million daily meeting participants at peak in April 2020 and 3.3 trillion meeting minutes in fiscal year 2022. Microsoft Teams reached 320 million monthly active users by mid-2023. Google Meet sustained over 100 million daily meeting participants during the 2020 surge. Discord serves over 200 million monthly active users with real-time voice and low-latency data channels. Figma's multiplayer engine synchronizes design state across hundreds of concurrent editors using CRDTs. Google Docs pioneered Operational Transformation for real-time text collaboration, serving billions of documents.

These figures establish that both media conferencing and document collaboration are individually solved at massive scale. The architectural challenge is their convergence within a single session context while preserving the latency and consistency guarantees of each.

Design Assumptions for This Answer

For capacity planning, this answer explicitly assumes a mature enterprise platform with 50 million registered users, 8 million daily active participants, 2 million concurrent sessions at peak, 400,000 simultaneous document-editing sessions, and a 3x event multiplier for all-hands or product-launch scenarios. Unless a number is tied to a published citation, it is a stated design assumption, target, or budget.

Scope Boundaries

We will design the converged platform architecture. We will not design the video codec internals, the speech-to-text model mathematics, the OT algorithm proofs, or the payment and billing system. We assume a WebRTC-compatible media stack, an OT or CRDT library, a transcription service, and a payment provider exist. We design the interfaces, failure semantics, and integration contracts around them.

Key Highlights

  • •The system has four planes: media, collaboration, session, and persistence, each with different consistency and latency requirements.
  • •Media is loss-tolerant and ephemeral; document operations are loss-intolerant and ordered.
  • •Zoom peaked at 300M daily participants; Teams reached 320M MAU; Google Docs serves billions of documents.
  • •The assumed mature platform has 8M daily participants, 2M concurrent sessions, and 400K simultaneous document-editing sessions.
  • •The core challenge is converging sub-200ms media latency with 100ms document convergence in one session context.
Lead With the Dual-Plane Insight
State in the first two minutes that media and document collaboration have fundamentally different consistency models. Media is loss-tolerant and ephemeral; document operations are loss-intolerant and must converge deterministically. This instantly separates your answer from a generic video call design.
Do Not Conflate the Two Planes
A design that routes document operations through the same SFU as video, or that treats chat messages with the same loss tolerance as audio frames, will fail under concurrent editing load. Keep the planes separate.

Section Rescue Kit

Buzzwords to use:

Selective Forwarding UnitOperational Transformation

Safe statements:

  • "I will separate media transport from document synchronization because their consistency and latency requirements are fundamentally different."
  • "Before selecting technologies, let me define which plane owns which invariant: media owns liveness, collaboration owns correctness."
Design a Video Conferencing with Document Sharing - System Design | WinJob | WinJob