-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add grpc config options and turn off keepalive for Lambda config #351
Conversation
channelBuilder.keepAliveTime(10, TimeUnit.SECONDS); | ||
channelBuilder.keepAliveTimeout(5, TimeUnit.SECONDS); | ||
channelBuilder.keepAliveWithoutCalls(true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
propagated these values to the prebuilt topics configs
momento-sdk/src/main/java/momento/sdk/internal/GrpcChannelOptions.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looking good, some minor comments, and would also like to get @pratik151192 or someone to review before we merge.
momento-sdk/src/main/java/momento/sdk/internal/GrpcChannelOptions.java
Outdated
Show resolved
Hide resolved
momento-sdk/src/main/java/momento/sdk/ScsControlGrpcStubsManager.java
Outdated
Show resolved
Hide resolved
momento-sdk/src/main/java/momento/sdk/config/transport/GrpcConfiguration.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm except one last nitpicky question
momento-sdk/src/main/java/momento/sdk/config/transport/GrpcConfiguration.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm. let's get either @pratik151192 or @nand4011 to review, just to make sure we're all aligned on the new API surface area, then 🚢
Adds message size to support messages up to 5mb by default (though I was only able to find the max receive message size option through the NettyChannelBuilder interface).
Adds keepalive settings to the configs as well. Disables keepalive for the cache control client and the Lambda prebuilt config. Sets different keepalive values for the topics prebuilt configs based on the values that were hardcoded into the topic grpc manager.