ReactiveCosmosRepository is not being invoked with webFlux and netty
Solution 1:
It's because you are coding imperatively instead of reactively. and you are breaking the chain which means that Reactor can't complete the assembly phase, and then execute during the subscription phase.
@Override
public Mono<FooResponse> getFooDetails() {
return repository.findAll()
.collectList()
.map(list -> {
FooResponse fooResponse = new FooResponse();
fooResponse.setCount(1000);
fooResponse.setList(list);
return fooResponse;
});
}
This is basic reactor and I recommend the following links:
Reactor Core Features
Flight of the flux