Deep dive into Spring WebSockets
summary
Spring WebSocket support (since Spring 4.0) adds STOMP-over-WebSocket handling, a demo chat app with profanity filter and private messaging works end to end, and Spring 4.1 introduces websocket scope (session-scoped beans, ban after 5 profanities in demo), an sjs Java client for server-to-server and load tests, and broker stats plus configurable thread pools/buffer limits (default send time limit 10s). Options are embedded simple broker or STOMP broker relay (RabbitMQ recommended for scale); Spring Security 4 and Spring Session integrate message-level security and HTTP–WebSocket session sync.
AI-written summary · about
chapters (19)
- 0:00Introduction to WebSockets
- 2:14Real-time web basics
- 5:42Why Spring WebSockets
- 8:12STOMP over WebSockets
- 10:21Message processing flow
- 16:46Demo: Chat application
- 22:25Destinations and brokers
- 33:28Spring Integration support
- 34:53Application destinations demo
- 40:51Broker destinations explained
- 44:43User-specific destinations
- 53:00WebSocket scope in Spring 4.1
- 56:56Performance and monitoring
- 1:03:24Java client for WebSockets
- 1:06:17WebSocket security
- 1:14:10Spring Session integration
- 1:16:57Testing WebSocket apps
- 1:21:56Resource implications
- 1:29:54Q&A and closing
related talks
01h 31mFrom Zero to Hero with Spring WebSocket
01h 22mSpring MVC 4.2: New and Noteworthy
51mSpring Boot 2.0 Web Applications
01h 28mIntroduction to WebSockets
54mWebSocket - JSR356
40mSocket to me
39mAmazing WebSockets in Netty
57mTransporting Data at Warp Speed: How to Connect Spring Boot Apps Quickly, Powerfully, and Painlessly
