docs: add gRPC retry middleware example#428
Open
ivanauth wants to merge 1 commit into
Open
Conversation
NewClient accepts arbitrary DialOptions, but neither the README nor the examples showed how to chain in client-side middleware such as automatic retries with backoff. Add a runnable example using go-grpc-middleware's retry interceptor (already an indirect dependency via grpcutil) and a README section covering interceptor chaining, jittered backoff, and the idempotency caveat for retried writes. Signed-off-by: ivanauth <ivan@authzed.com>
ivanauth
force-pushed
the
fix/issue-156-add-examples-using-grpc-middleware
branch
from
July 21, 2026 19:03
e2465eb to
51563dc
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #156
NewClient accepts arbitrary gRPC DialOptions, but the README and examples didn't show how to chain in client-side middleware. Adds a runnable Example_retryMiddleware (retries with jittered exponential backoff).