Posts

Showing posts from November, 2018

Spring WebFlux

1. Overview Spring WebFlux framework is part of Spring 5 and provides reactive programming support for web applications. In this tutorial, we’ll be creating a small reactive REST application using the reactive web components  RestController  and  WebClient. We will also be looking at how to secure our reactive endpoints using Spring Security. 2. Spring WebFlux Framework Spring WebFlux internally uses  Project Reactor  and its publisher implementations –  Flux  and  Mono . The new framework supports two programming models: Annotation-based reactive components Functional routing and handling Here, we’re going to be focusing on the Annotation-based reactive components, as we already explored the  functional style – routing and handling . 3. Dependencies Let’s start with the  spring-boot-starter-webflux  dependency, which actually pulls in all other required dependencies: spring-boot  and  spring...