American Research Journal of Computer Science and Information Technology
ISSN (Online): 2572-2921
DOI: 10.46568/arjcsit
Architectural Approaches to Building Real-Time Web Applications Based on WebSockets, SSE, and WebRTC
Affiliation
Senior Software Engineer, Lowe’s Indian Trail, NC 28079, US
Abstract
This article reviews contemporary architectural approaches to building real-time web applications that require instant data updates. It highlights a comparative analysis of key technologies—WebSockets, Server-Sent Events (SSE), and WebRTC—providing guidance on selecting the most suitable solution for scenarios such as chat systems, online editors, and multiplayer games. In addition, it explores strategies for scaling and load balancing real-time connections, as well as mechanisms to ensure reliable data delivery. Typical architectures—such as Node.js with Redis Pub/Sub or Kafka—are presented, along with recommended methods for monitoring and logging real-time data streams. Code snippets illustrate practical implementation techniques to help developers create robust and efficient real-time features within various infrastructures.
Citation
Andrei Chmelev, “Architectural Approaches to Building Real-Time Web Applications Based on WebSockets, SSE, and WebRTC”, American Research Journal of Computer Science and Information Technology, Vol 8, no. 1, 2025, pp. 24-30.