© Adam L. Davis 2019
Adam L. DavisReactive Streams in Javahttps://doi.org/10.1007/978-1-4842-4176-9_5

5. Reactor

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

Project Reactor is Spring’s implementation of Reactive Streams (in version 3 and beyond). It has two main publishers, Flux<T> and Mono<T>. It also uses Schedulers much like RxJava.

The Spring Framework has many integrations with Reactor that make it easier to use with other Spring projects, such as Spring Data and Spring Security.

Getting Started

If you have a Maven build, add the following to your pom file:
<dependency>
  <groupId>io.projectreactor</groupId>
  <artifactId>reactor-core</artifactId>
  <version>3.1.9.RELEASE</version>
</dependency>
<dependency>
  <groupId>io.projectreactor</groupId>
  <artifactId>reactor-test</artifactId> ...

Get Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.