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

Compare Kafka, Redis (Pub/Sub and Streams), and RabbitMQ as the messaging backbone for a real-time system across three use cases: fan-out notifications to many subscribers, ordered per-conversation chat, and ephemeral presence events. For each broker evaluate throughput, persistence and retention, delivery semantics, latency, consumer model, and operational complexity, and recommend a fit per use case, including for a notification service with a sub-100ms tail-latency requirement.

HardSystem Design
61 practiced

Design a multi-CDN traffic-steering architecture to optimize availability and cost. Include real-time telemetry ingestion, a steering decision engine that chooses between failover and load-splitting, your chosen steering mechanism and why, and the metrics you would use to evaluate provider performance.

MediumTechnical
51 practiced

Estimate and compare the per-connection server resource implications (file descriptors, memory per connection, CPU context switching or event-loop overhead) and request pattern characteristics for: (a) persistent WebSocket connections, (b) Server-Sent Events (SSE), and (c) short polling every 5 seconds. Provide a back-of-envelope calculation for 1M concurrent clients and discuss the main bottlenecks and mitigation strategies.

MediumTechnical
56 practiced

Design a packaging strategy using CMAF to serve both HLS and DASH while minimizing storage duplication. Explain how manifests will be generated, chunking strategy, ad insertion considerations, and fallback logic for older clients that do not support CMAF.

HardTechnical
54 practiced

Estimate capacity and monthly cost for a service that keeps 10 million persistent WebSocket connections open, each sending 1KB/s on average. Show calculations for sustained bandwidth requirements, TLS overhead, server instance sizing (connections per server), proxy/gateway sizing, redundancy, and cloud egress cost assumptions. State assumptions clearly.

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.