Description
I believe we have a valid case where in-process channels are useful in production code. Sometimes, a process in my app knows it can deal with a request itself, making it unnecessary to use a Netty-based channel. And always using RPCs also simplifies the architecture of my app.
Would it be possible to support a GrpcChannelFactory for in-process channels? Mostly for the reason that I then don't have to copy code from DefaultGrpcChannelFactory#destroy()
. Also, this line of code https://github.com/spring-projects-experimental/spring-grpc/blob/main/spring-grpc-spring-boot-autoconfigure/src/main/java/org/springframework/grpc/autoconfigure/client/GrpcChannelFactoryConfigurations.java#L64 makes it a bit cumbersome to define my own GrpcChannelFactory, as I then don't have an instance of the Netty-based factory by default (which I still need).