Real Time Articles
2 articles about Real Time. Explore Spring Boot implementation, design, and operations across related topics.
-
How to Implement Server-Sent Events (SSE) in Spring Boot - SseEmitter / WebFlux Implementation Guide
Learn how to implement Server-Sent Events (SSE) in Spring Boot. This guide covers implementations using Spring MVC's SseEmitter and WebFlux's Flux of ServerSentEvent, automatic reconnection with EventSource and resumption via Last-Event-ID, broadcasting to multiple clients, production pitfalls such as Nginx proxy_buffering, and a real-world example of relaying LLM streaming responses.
-
How to Implement Real-Time Communication with WebSocket in Spring Boot - STOMP and SockJS Basics
A step-by-step guide to getting a broadcast-style chat running quickly with Spring Boot + STOMP + SockJS, explained through a three-layer structure: the configuration class, @MessageMapping, and SimpMessagingTemplate. Also covers one-to-one messaging, retrieving the authenticated user via Principal, and scaling with an external broker.