Real-Time and Streaming System Design Questions

Designing client-facing, always-on live delivery systems: real-time communication transports (WebSockets, server-sent events, long-polling, WebRTC, MQTT), connection lifecycle and scaling for millions of persistent connections, presence, pub/sub fan-out to online users, chat and notifications, live feeds and tickers, real-time collaboration (CRDT vs OT, offline sync and reconciliation), and live and on-demand video delivery (ingest, transcoding, adaptive bitrate, CDN delivery, low-latency protocols, playback entitlement and content protection). Covers latency budgets, per-client ordering, delivery guarantees across disconnect and reconnect, per-client backpressure, capacity estimation for connection fleets, authentication, authorization, and revocation for real-time channels and premium content, and operational readiness (SLOs and error budgets, observability and incident response, rate limiting, safe rollout, and load and chaos testing) for live-delivery platforms. Data-pipeline stream processing (Kafka or Flink jobs, windowed aggregation, exactly-once pipelines, real-time analytics ingestion) is out of scope.

MediumSystem Design
54 practiced

Design an architecture to support 100k user-generated live channels, most with small audiences. Discuss cost-efficient transcoding approaches (per-channel vs shared encoder pools), segment retention policies, cold/warm origin caching, and autoscaling strategies for sudden popularity spikes.

HardSystem Design
53 practiced

Design an architecture to handle 10 million concurrent persistent connections globally across multiple regions, supporting failover, low latency, and broadcasting messages to any subset of users, with regional latency SLOs under 500ms. Discuss regional affinity, global routing (GeoDNS/GSLB), sticky-session implications, edge proxies, how connection state is stored, consistency of presence state, cross-region replication of pub/sub metadata, and failover design.

MediumTechnical
60 practiced

Compare HLS, DASH, and WebRTC for different streaming use cases, and recommend which protocol you'd choose for: VOD on heterogeneous devices, large-scale live events, and interactive real-time apps (e.g. auctions or low-latency chat). Consider latency, compatibility, CDN-friendliness, and DRM integration in your recommendations.

MediumSystem Design
58 practiced

Design a multi-region streaming architecture for six global regions to provide low-latency playback and region-level failover. Explain traffic routing (DNS, Anycast), origin selection, how to replicate or cache metadata and entitlements, and how to keep control-plane operations consistent across regions.

MediumTechnical
51 practiced

Estimate and compare the per-connection server resource implications (file descriptors, memory per connection, CPU context switching or event-loop overhead) and request pattern characteristics for: (a) persistent WebSocket connections, (b) Server-Sent Events (SSE), and (c) short polling every 5 seconds. Provide a back-of-envelope calculation for 1M concurrent clients and discuss the main bottlenecks and mitigation strategies.

Unlock Full Question Bank

Get access to all 20 Real-Time and Streaming System Design interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.