I have a method that try use WebClient to return a Mono
@GetMapping(\"getMatch\")
public Mono
Probably, what you need is the following:
@GetMapping("getMatches")
public Flux
Instead of:
@GetMapping("getMatches")
public Flux
Notes:
Basically, you expect getMatches endpoint to return Flux. However, as it is written - it actually returns Flux, therefore you see the strange output. To get Flux, I suggest, first, create Flux that are match ids, and then flatMap the result of calling getMatch (that returns Mono), this finally gives Flux.
Also, there is no need to use parallelStream(). Because you're already using reactor, everything will be performed concurrently on reactor scheduler.