Understanding Flux and Mono
As I said, Reactor is another fourth-generation Reactive library like ReactiveX. It originally started as a lightweight version of Rx; however, with time, it grew, and today it's almost of the same weight as ReactiveX.
It also has a producer and consumer module, just like Rx. It has Flux, similar to Flowable and Mono as a combination of Single and Maybe.
Note that when describing Flux, I said Flowable, not Observable. You can probably guess the reason. Yes, all Reactor types are backpressure enabled. Basically, all the Reactor types are a direct implementation of the Reactive Streams Publisher API.
Flux is a Reactor producer that can emit N number of emissions and can terminate successfully or with an error. Similarly, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access