Hello we have a Spring WebFlux based application that needs to make a GRPC call to another server that we are working with. I understand that we can use WebFlux's built in WebClient class for making http calls in a reactive way, but I am wondering how we can make GRPC calls in a similar fashion. Right now we are making outbound grpc calls by making a blocking grpc call on a different thread like this.
Mono<Response> responseMono = Mono.just(req)
.publishOn(Schedulers.boundedElastic())
.flatMap(request -> Mono.just(blockingStub.myMethod(req)))
Is there a way to make these outbound grpc calls in a similar way to how we can make call using the built in WebClient class such that it is reactive and we don't need to use the blocking stub nor make the call on a separate thread?