American Research Journal of Computer Science and Information Technology      cover
Open Access

American Research Journal of Computer Science and Information Technology

ISSN (Online): 2572-2921

DOI: 10.46568/arjcsit

Research Article Vol. 8, Issue 1 2025 Open Access

Architectural Approaches to Building Real-Time Web Applications Based on WebSockets, SSE, and WebRTC

Andrei Chmelev

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.