October 2018
Intermediate to advanced
556 pages
15h 18m
English
Readers who are familiar with the servlet-based WebSocket module may notice that there are a lot of similarities in the design of both modules. However, there are a lot of differences as well. As we may remember, the main disadvantage of the Spring WebSocket module is its blocking interaction with IO, whereas Spring WebFlux offers fully non-blocking writes and reads. In addition, the WebFlux module offers better streaming abstraction by employing the Reactive Streams specification and Project Reactor. The WebSocketHandler interface from the old WebSocket module only allows to process one message at a time. Also, the WebSocketSession#sendMessage method only allows sending messages in a ...