I have two Mono<T>
that i have got from two different sources let us say KAFKA
.
My intention is to merge both these Mono
into a Flux<T>
. 1
Then use public final Mono<T> reduce(BiFunction<T,T,T> aggregator)
method in Flux
to create a final Mono
out of it (as the response time of above two Mono
may vary). 2
approach:
There are many methods such as contact
, zip
, zipWith
to use on Flux
. How do i arrive at a correct method to use (Two Mono
to Flux
conversion i.e, 1).
And is this REDUCE
approach really correct or is there anything else could be done to improvise it (2) ? Thanks.