momentohq / client-sdk-java

Official Java SDK for Momento Serverless Cache
Apache License 2.0
13 stars 5 forks source link

feat: add support for configuring minimum num gRPC channels on CacheClient #345

Closed cprice404 closed 9 months ago

cprice404 commented 9 months ago

Prior to this commit, each instance of the CacheClient would always open a single gRPC channel to the server. This commit adds a configuration setting on the GrpcConfiguration object which allows a user to configure a minimum number of channels; this is useful for cases where callers will be issuing more than 100 concurrent requests, since 100 is the maximum number of requests that can be multiplexed over a single channel.