'What is the default scheduler in Project Reactor?

Is there a "default" scheduler in the Project Reactor? Which one is it? By "default" I mean the one used when no subscribeOn() nor publishOn() are called for the chain.



Solution 1:[1]

By default, data production process starts on the Thread that initiated the subscription. Operators that deal with a time (e.g. Mono.delay) will default to running on the Schedulers.parallel() scheduler.

Most of reactive libraries (Reactive Redis, Mongo, ...) would use parallel as a default scheduler.

For example Spring WebFlux, typically use Reactor Netty as a default embedded server and would initiate subscription on Schedulers.parallel().

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Mark Rotteveel