Skip to Content
Hands-On Reactive Programming in Spring 5
book

Hands-On Reactive Programming in Spring 5

by Oleh Dokuka, Igor Lozynskyi
October 2018
Intermediate to advanced
556 pages
15h 18m
English
Packt Publishing
Content preview from Hands-On Reactive Programming in Spring 5

Reactive in Spring Session

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" ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Spring Microservices in Action, Second Edition

Spring Microservices in Action, Second Edition

John Carnell, Illary Huaylupo Sanchez

Publisher Resources

ISBN: 9781787284951Supplemental Content