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
A guide to implementing Server-Sent Events (SSE) in Spring Boot. Covers implementations using Spring MVC's SseEmitter and WebFlux's Flux<ServerSentEvent>, automatic reconnection with EventSource and resumption via Last-Event-ID, broadcasting to multiple clients, production pitfalls such as Nginx's proxy_buffering, and a practical example of relaying LLM streaming responses.
-
How to Implement Real-Time Communication with WebSocket in Spring Boot - Basics of STOMP and SockJS
Learn how to quickly run a broadcast-style chat with Spring Boot + STOMP + SockJS, explained through a three-layer structure of configuration class, @MessageMapping, and SimpMessagingTemplate. Covers one-to-one messaging, retrieving authenticated users via Principal, and scaling with an external broker.