Closed elena-kolevska closed 2 months ago
This pull request has been automatically marked as stale because it has not had activity in the last 60 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!
Description
This is one of the possible options we're looking at for implementing retry policies.
gRPC specifies that retry policy definitions should be defined on the service itself and transmitted to the client through the service config mechanism (https://github.com/grpc/proposal/blob/master/A6-client-retries.md). All gRPC clients are supposed to execute the retries, based on the policy.
This PR specifies the retry policy service config on the client. It's a very clean way to do it, with minimal code change, but there's two main drawbacks:
RetryInfo
detail where the server instructs the client when it should retry the request