-
Notifications
You must be signed in to change notification settings - Fork 21
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: segregate retry decision for read and write APIs #1465
Conversation
pratik151192
commented
Nov 12, 2024
- chore: add tests for retry strategies
- feat: segregate retry decision for read and write APIs
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!
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.
Few questions:
-
We currently only retry idempotent RPCs. On a
CANCELLED
, shouldn't we retry any idempotent RPC (vs only read APIs)? If we can retry any idempotent RPC, then we won't have to maintain separate read vs write RPC lists. -
I understand this came up because we want the client to be tolerant to deploys. Will the retry schedule we have now be long enough for outages due to deployments?
I'll revert the source file and just uncomment |
@malandis To add more context, not all requests are bound to this so the length of deployment is unrelated. It's more to do with how grpc-js is handling These are low enough in volume and historically has been to not be impacted by deployment length. |