I need to call an API whose response is of the following form, and it promises to return the metadata before the results:
{
"metadata": {...},
"results": [...]
}
I'm using WebClient, and I want to end up with a Flux<Result>, so I can process them without blocking for everything to arrive. Is there a way to do that?
I think I'd end up with is something like a Mono<Tuple2<Metadata, Flux<Result>>> so I don't block waiting for the metadata or the results