Reactive Applications Support
Reactive programming revolves around asynchronous and non-blocking interactions, characterized by callback and declarative approaches. It incorporates a backpressure mechanism to regulate the throughput from the producer, aiding in consumer control. In Java, Reactive programming relies on Streams
, CompletableFuture
, and backpressure controls. There exist numerous relevant use cases where reactive programming proves beneficial, including supporting high peak workloads, microservices, contention avoidance, IoT and Big Data applications.
Spring relies on the project reactor(https://projectreactor.io/) that is the f foundation of Spring
Webflux
(https://docs.spring.io/spring-framework/reference/web/webflux.html).
To add Spring Security
reactive support into your Spring Boot project, you need to include spring-boot-starter-security
and spring-boot-starter-webflux
dependencies in your projects:
//build.gradle dependencies { ... ...