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.

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.

HardSystem Design
48 practiced

Design an end-to-end realtime system to broadcast order-book updates for a high-frequency trading platform to thousands of subscribers. Requirements: maintain strict ordering per instrument, sub-10ms tail latency within region, support replay of missed updates for up to 1 minute, guarantee at-most-once delivery for downstream processing, and handle 100k updates/sec. Detail components (ingest, sequencer, transport), storage for replay, sequencing, backpressure handling, and operational considerations.

EasyTechnical
59 practiced

Explain eventual consistency in the context of real-time client updates. Describe the trade-offs between latency and strong consistency, examples of acceptable eventual consistency (social feeds) versus unacceptable cases (financial transfers), and how to design reconciliation processes and user-visible indicators for divergence.

MediumTechnical
58 practiced

Design how to guarantee message ordering within a chat conversation while accepting at-least-once delivery semantics from the underlying broker. Detail client and server-side strategies including sequence numbers, per-conversation partitions, buffering and reordering on clients, dealing with gaps, and reconciling messages after reconnect. Explain trade-offs between user-visible latency and ordering guarantees.

HardSystem Design
87 practiced

Design an end-to-end architecture for a real-time collaborative document editor (Google Docs style) that supports concurrent editing, offline edits, presence and cursor sync, and document version history, for millions of documents. Address the choice between CRDT and OT, document sharding, persistence and compaction, broadcasting edits, user-presence scaling, and how you would roll this out incrementally with a testing plan that validates each piece safely before it carries production traffic.

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.