October 2018
Intermediate to advanced
556 pages
15h 18m
English
Another significant update in the Spring Framework, which is related to the Spring Web module, is reactive support in the Spring Session module.
Now we get support for the WebFlux module so that we may employ an efficient abstraction for session management. For that purpose, Spring Session introduces ReactiveSessionRepository, which enables asynchronous, nonblocking access to the stored session with the Reactor's Mono type.
Apart from that, Spring Session offers reactive integration with Redis as session storage over reactive Spring Data. In this way, we may achieve a distributed WebSession just by including the following dependencies:
compile "org.springframework.session:spring-session-data-redis"compile "org.springframework.boot:spring-boot-starter-webflux" ...