How to chain Flux & Mono Publishers?
I want to chain them both and send response. Basically, execute all asynchronously.
Here, I use zip for Mono & Flux for executing all Mono publishers and Flux publishers.
List<Mono<?>> monoPubs = new ArrayList<>();
Mono.zip(monoPubs, mred -> result);
List<Flux<?>> fluxPubs = new ArrayList<>();
Flux.zip(fluxPubs, fres -> result);