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.

HardSystem Design
47 practiced

You're asked to migrate long-running generative requests from synchronous request/response to asynchronous streaming (progressive token delivery) without breaking SLAs for short, latency-sensitive requests. Design the architecture: client contract, correlation ids, streaming protocols, backpressure, cancellation, and how you would run a staged migration.

EasyTechnical
91 practiced

Explain optimistic updates in client-server real-time applications. Describe how optimistic updates improve perceived latency, the consistency risks they introduce, and common reconciliation or undo strategies you would design (e.g., operation IDs, server ack, rollback UX patterns). Provide examples such as UI toggles, chat 'sent' states, or like buttons.

HardSystem Design
51 practiced

Architect a globally distributed real-time chat system supporting 100 million daily active users, 200 million daily messages, and peaks of 10k-100k messages per second. Address user presence, message routing and partitioning, ordering guarantees, offline delivery and reconciliation, moderation and abuse controls, multi-region replication, network-partition handling and client reconnection, latency targets, and capacity planning.

MediumTechnical
55 practiced

Describe techniques for handling backpressure when a server streams events to many clients with different consumption rates. Discuss per-client buffering and eviction policies, adaptive rate-limiting, batching and windowing, drop/trim strategies, and how to surface client feedback so the server knows a client is falling behind. Explain the memory and CPU trade-offs and the monitoring signals you would use to detect backpressure, including how you would manage the underlying per-connection buffer memory (pooling, eviction, soft/hard limits) to avoid OOM during traffic spikes.

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.