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.

EasyTechnical
52 practiced

Explain the WebSocket opening handshake and how it differs from a typical HTTP request/response flow. Compare WebSocket with HTTP/2 server push and SSE in terms of compatibility with HTTP proxies, TLS termination, connection upgrade requirements, and failure modes when intermediaries interfere. Describe practical mitigations for proxy or firewall incompatibilities.

HardTechnical
47 practiced

Outline a comprehensive security design to protect premium streaming content against unauthorized access and piracy, across ingest, storage, and playback. Address how you would verify a legitimate viewer and device before playback, prevent stream ripping or credential sharing, and give operations visibility into abuse and enforcement. Discuss the operational touchpoints for monitoring and takedown.

HardSystem Design
64 practiced

Design an authentication and authorization system for real-time channels that supports device-level revocation, instantaneous permission changes, token rotation, and auditing at scale. Discuss token lifetimes, refresh strategies, revocation mechanisms (push vs token versioning), performance trade-offs, and how to revoke millions of active sessions quickly if needed.

MediumTechnical
47 practiced

How would you design message retention and replay capabilities for a realtime platform where clients may disconnect for minutes or hours? Cover retention window sizing, storage tier choices across hot and cold storage, replay API design, access controls for replay, and cost and operational trade-offs.

HardTechnical
46 practiced

Design and provide pseudocode for a server-side backpressure policy that, upon crossing a memory threshold, selectively drops, compresses, or aggregates messages per-client priority. The policy should preserve high-priority messages, emit metrics for dropped messages, and support graceful degradation. Explain rollout strategy and safety guards to avoid broad customer impact.

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.