October 2018
Intermediate to advanced
556 pages
15h 18m
English
Now, let's look at how the Mono type is different from the Flux type:

In contrast with Flux, the Mono type defines a stream that can produce at most one element and can be described by the following formula:
onNext x 0..1 [onError | onComplete]
The distinction between Flux and Mono allows us to not only introduce additional meaning to the method signatures, but also enables more efficient internal implementation of Mono due to skipping redundant buffers and costly synchronizations.
Mono<T> may be useful in cases when an application API returns one element ...
Read now
Unlock full access