Skip to content

docs: add gRPC retry middleware example#428

Open
ivanauth wants to merge 1 commit into
authzed:mainfrom
ivanauth:fix/issue-156-add-examples-using-grpc-middleware
Open

docs: add gRPC retry middleware example#428
ivanauth wants to merge 1 commit into
authzed:mainfrom
ivanauth:fix/issue-156-add-examples-using-grpc-middleware

Conversation

@ivanauth

Copy link
Copy Markdown
Contributor

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).

@ivanauth
ivanauth requested a review from a team as a code owner July 21, 2026 18:51
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
ivanauth force-pushed the fix/issue-156-add-examples-using-grpc-middleware branch from e2465eb to 51563dc Compare July 21, 2026 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add examples using gRPC middleware

1 participant