grpc-ecosystem / grpc-ecosystem/grpc-spring
Does GRPCClient reuses the channel? Need to understand underlying work behaviour of gRPCClient annotation
- Dominant language
- Java
- Stars
- 3.7k
- Forks
- 858
- PR merge metrics
- No merged PRs in 30d
Description
About gRPC Channel
gRPC channel -A gRPC channel provides a connection to a gRPC server on a specified host and port.
Does @GrpcClient creates new channel everytime or it reuses the channel to make request?
Do we have option for below customization in java grpccpringboot library??
From https://learn.microsoft.com/en-us/aspnet/core/grpc/performance?view=aspnetcore-7.0
Channels are safe to share and reuse between gRPC calls:
gRPC clients are created with channels. gRPC clients are lightweight objects and don't need to be cached or reused.
Multiple gRPC clients can be created from a channel, including different types of clients.
A channel and clients created from the channel can safely be used by multiple threads.
Clients created from the channel can make multiple simultaneous calls.
Contributor guide
Assessment
This issue has not been assessed yet.