Skip to content

Retry-Middleware: allow smart retry with suggestion from server #756

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

Open
ducttse opened this issue Apr 24, 2025 · 2 comments
Open

Retry-Middleware: allow smart retry with suggestion from server #756

ducttse opened this issue Apr 24, 2025 · 2 comments

Comments

@ducttse
Copy link

ducttse commented Apr 24, 2025

Hi, is there a plan for supporting retry middleware with minimum retry wait duration.
For example, when the server return RetryDelay struct RetryInfo the client can use this information to delay retrying to the server.
I will be happy to provide an implementation if we can agree on the payload that will be return from the server side when it want the client to retry after a period.

@johanbrandhorst
Copy link
Collaborator

No, this seems like it's better suited in your own forked implementation. More is not always better in a library like this.

@johanbrandhorst
Copy link
Collaborator

Actually, I do really enjoy the idea of using the googleapis RetryInfo to adjust retry delays. We could do that automatically by extracting the error from the handler.

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

No branches or pull requests

2 participants