Scheduler

Reactor executes all operations using one of the schedulers. A Reactor scheduler does not belong to the java.util.concurrent API. The Java concurrent API is quite low-level, where we can initiate and control task execution. On the other hand, all tasks in a Reactor chain are executed by the Reactor engine. Consequently, we do not need a low-level API to manage task execution. Instead, Reactor offers a declarative model, which we can use to configure a Scheduler and alter the behavior of the chain execution.  

Before we start to configure Reactor, let's first determine the default execution model. By default, Reactor is mostly single-threaded. The publisher and subscriber do not create additional threads for their execution. All ...

Get Hands-On Reactive Programming with Reactor now with O’Reilly online learning.

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