© Adam L. Davis 2020
A. L. DavisSpring Quick Reference Guidehttps://doi.org/10.1007/978-1-4842-6144-6_17

17. Spring WebFlux

Adam L. Davis1 
(1)
Oviedo, FL, USA
 

Spring WebFlux is similar to Spring MVC but allows you to use reactive streams and is asynchronous and nonblocking, which, if used correctly, can allow your application to have better performance.

With WebFlux, we can quickly create asynchronous, nonblocking, and event-driven applications using HTTP or WebSocket connections. Spring uses its own Reactive Streams implementation, Reactor1 (with Flux<T> and Mono<T>), in many of its APIs. You can use another implementation within your application, such as RxJava if you choose, but project Reactor has the best integration with WebFlux.

By default, ...

Get Spring Quick Reference Guide: A Pocket Handbook for Spring Framework, Spring Boot, and More now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.