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

You need to roll out a change to your realtime message format (add a new non-mandatory field that older clients ignore). Describe a safe rollout plan: feature flags or capability negotiation, backward-compatible schema changes, client and server compatibility testing, monitoring for parse/validation errors, gradual traffic ramp and rollback strategy to avoid breaking live clients.

MediumSystem Design
58 practiced

When and how would you use edge compute (CDN edge functions or regional edge nodes) for real-time features such as presence or low-latency notifications? Discuss trade-offs including consistency, routing complexity, cold-starts and warm-up, operational cost, and what logic is safe to run at edge vs what must run centrally.

MediumTechnical
96 practiced

Describe how Adaptive Bitrate (ABR) algorithms decide which rendition to request. Propose an ABR strategy and player-level heuristics to balance startup time, video quality, and rebuffering on mobile networks with fluctuating throughput. What client metrics would you collect to validate the strategy?

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.

MediumSystem Design
47 practiced

You need to scale WebSocket servers horizontally. Compare approaches for storing per-connection state and routing messages: (1) sticky load balancer with state local to the server, (2) a centralized external session store (e.g. Redis) mapping user to server, (3) stateless servers with tokens and an external pub/sub layer for message routing, and (4) connection handoff across frontends. Discuss latency, reliability, failover behavior, operational complexity, and cost for each, and recommend an approach for large-scale operations.

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.