From Zero to Hero with Spring WebSocket
summary
Shows how Spring 4.2 adds Server‑Sent Events support using SseEmitter and the browser EventSource API to push notifications, then migrates to full duplex messaging with WebSocket, SockJS fallbacks and STOMP over WebSocket so clients subscribe and send to destinations. Demonstrates simple in‑memory broker vs a broker relay to RabbitMQ for scaling, handshake customization to assign usernames, user destinations and user‑registry synchronization, and message‑level security with Spring Security plus use of WSS.
AI-written summary · about
chapters (17)
- 0:00Introduction to Real-time
- 1:08Limitations of HTTP 1.1
- 2:44Historical Real-time Hacks
- 5:03Server-Sent Events Overview
- 8:20Implementing SSE in Spring
- 14:41SSE Live Demo Review
- 17:37Introduction to WebSockets
- 22:21WebSocket Protocol and API
- 25:41Spring WebSocket Support
- 28:44Implementing Raw WebSockets
- 41:43STOMP and Message Brokers
- 47:13STOMP Over WebSockets Demo
- 51:51Configuring Message Broker
- 1:04:38User Destinations and Security
- 1:13:22Scaling with Broker Relay
- 1:19:30Clustering and Registry Sync
- 1:27:51WebSocket Security Deep Dive
related talks
01h 30mDeep dive into Spring WebSockets
52mEventSource: The under appreciated sibling of WebSockets
25mTaming Client-Server Communication
26mThe end of polling
01h 28mIntroduction to WebSockets
01h 16mGoing Async - Practical Patterns for Push-Enabled Applications
57mTransporting Data at Warp Speed: How to Connect Spring Boot Apps Quickly, Powerfully, and Painlessly
51mSpring Boot 2.0 Web Applications
