Tagged articles

Redis Pub/Sub

5 articles · Page 1 of 1
Xiaolin Talks Programming
Xiaolin Talks Programming
Sep 11, 2026 · Backend Development

Spring Boot SSE Integration: Simpler Server Push Without WebSocket Overhead

This article details implementing Server-Sent Events (SSE) in Spring Boot for real-time server-to-client push, covering SseEmitter endpoints, connection registry with cleanup, heartbeat, Last-Event-ID reconnection, cluster broadcasting via Redis Pub/Sub, Base64 binary transfer, and production tuning for Nginx and thread pools.

EventSourceRedis Pub/SubSSE
0 likes · 17 min read
Spring Boot SSE Integration: Simpler Server Push Without WebSocket Overhead
Xiaolin Talks Programming
Xiaolin Talks Programming
Aug 31, 2026 · Backend Development

Building a High-Performance TCP Long-Connection Gateway with Spring Boot and Netty: Protocol, Heartbeat & Cluster Broadcast

This article details integrating Netty with Spring Boot to build a scalable TCP long-connection gateway, covering binary protocol design with length-field framing, heartbeat detection using IdleStateHandler, session management with Redis and local maps, single-node and Redis Pub/Sub cluster push mechanisms, and performance tuning tips including Epoll transport and thread pool isolation.

ClusterEpollGateway
0 likes · 25 min read
Building a High-Performance TCP Long-Connection Gateway with Spring Boot and Netty: Protocol, Heartbeat & Cluster Broadcast
Xiaolin Talks Programming
Xiaolin Talks Programming
Jun 27, 2026 · Backend Development

Spring Boot WebSocket Clustering: State Decoupling & Routing at Scale

This article details production-hardened patterns for scaling Spring Boot WebSocket clusters, covering protocol trade-offs, STOMP heartbeat alignment, Redis-based routing, offline message compensation, reconnection backoff, idempotency layers, Undertow tuning, memory leak diagnostics, Nginx proxy pitfalls, split-brain defense, and graceful shutdown — all grounded in real incidents.

ClusteringNginxRedis Pub/Sub
0 likes · 21 min read
Spring Boot WebSocket Clustering: State Decoupling & Routing at Scale