InterviewStack.io LogoInterviewStack.io

Real Time Communication Architecture Questions

This topic focuses on design patterns and infrastructure for real time features. Candidates should compare and justify choices between Websocket based connections, server sent events, and polling, and describe the operational implications of each choice such as connection lifetime, server resource usage, and request patterns. At scale, discuss load balancing strategies, connection routing and state, sticky sessions versus stateless approaches, message brokers, and horizontal scaling. Demonstrate understanding of real time features like presence, live updates, and collaborative editing, and design patterns including broadcast, unicast, and multicast messaging. Address reliability concerns such as message ordering, duplicate delivery versus exactly once semantics, idempotency, persistence, and conflict resolution in collaborative scenarios. Be prepared to mention relevant libraries and protocols and to describe trade offs between flexibility, complexity, and operational cost.

MediumTechnical
45 practiced
A client asks whether to use a managed real-time platform (e.g., AWS API Gateway WebSocket, AppSync, Pusher) versus building and operating their own WebSocket fleet. Create a decision matrix comparing cost, time-to-market, operational risk, customization and feature flexibility, vendor lock-in, and compliance. Provide recommendations for a bootstrapped startup and for a regulated large enterprise.
MediumSystem Design
47 practiced
Design a cross-platform real-time notification service that consumes events from multiple microservices and delivers them as sub-second high-priority push notifications (mobile push), in-app WebSocket streams, or email for lower priority. Requirements: per-user preferences, per-user throttling, reliable retry for failed delivery, and audit logs. Provide a component diagram and describe event flow, fanout, persistence, transformation, and backpressure handling.
MediumTechnical
45 practiced
You're choosing between CRDTs and Operational Transforms (OT) for a collaborative rich-text editor that must support offline edits, multi-region users, and audit logs. Compare the approaches on correctness guarantees, implementation complexity, bandwidth/metadata overhead, server role (stateful vs stateless), debug/administration, and operational cost. Which would you recommend for an enterprise product and why?
MediumSystem Design
40 practiced
Design an observability strategy for a real-time platform. Which metrics, logs, and distributed traces would you collect for connection health (churn, duration), message delivery (latency, success/failure), broker lag, and end-to-end user-perceived latency? Propose SLOs, alerting thresholds, and example dashboards and runbooks for on-call teams.
MediumTechnical
41 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.

Unlock Full Question Bank

Get access to hundreds of Real Time Communication Architecture interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.