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
90 practiced

Design a comments feature for collaborative document editing (comment threads anchored to document ranges). Clarify requirements with product (real-time vs. non-real-time, access control, edit history), state your assumptions, propose two different approaches for keeping a comment thread in sync in real time plus one for offline-first comments, discuss the trade-offs in consistency, latency, and usability, and outline how you'd communicate the design to product and QA.

MediumTechnical
51 practiced

Propose a transcoding and packaging pipeline that supports both VOD and live streams for multiple codecs (H.264, H.265, AV1) and multiple audio/subtitle tracks. Explain choices for segment duration, parallelization, pre-warming encoders, and trade-offs between latency, quality, and operational cost.

MediumTechnical
58 practiced

What metrics, logs, and traces would you instrument to monitor a realtime streaming platform (WebSocket frontends, message broker, consumers)? Include per-connection metrics, message latency percentiles, backpressure indicators, reconnection rates, auth failures, and queue depths. Propose SLOs, alerting rules, and runbook actions for the common failure modes, and describe how you'd present this in dashboards for an on-call team.

HardSystem Design
45 practiced

Design a live-streaming architecture for a major sports event with 2M concurrent viewers and an end-to-end latency requirement under 5 seconds. Include ingest topology, encoder/packer choices, segment durations, CDN selection, edge packaging, and player buffer strategies required to meet the SLA.

HardSystem Design
44 practiced

Design a global propagation strategy so a content availability change (for example a rights-window change, an immediate takedown, or a geo-restriction) becomes effective worldwide within two minutes, with an audit trail you can use to prove compliance on a takedown request. Discuss approaches including CDN purge APIs, cache-busting, token revocation, edge invalidation, and enforcement at edge vs. origin, and the trade-offs with origin load and rate limits.

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.