Skip to content

Support in-process channels in non-test code #144

@Meijuh

Description

@Meijuh

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).

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions