Skip to content
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

Adjust servicetalk-examples-http-retry #2746

Merged
merged 1 commit into from
Nov 11, 2023

Conversation

idelpivnitskiy
Copy link
Member

Motivation:

Currently, this example shows that any 5xx response can be retryable and applies immediate retries. We should teach users in a conservative way to retry only specific status codes with exponential backoff and jitter.

Modifications:

  • Retry only 429, 502, 503, 504 status codes;
  • Apply exponential backoff with jitter;

Result:

Example teaches users better practices.

Motivation:

Currently, this example shows that any 5xx response can be retryable
and applies immediate retries. We should teach users in a conservative
way to retry only specific status codes with exponential backoff and
jitter.

Modifications:

- Retry only 429, 502, 503, 504 status codes;
- Apply exponential backoff with jitter;

Result:

Example teaches users better practices.
@idelpivnitskiy idelpivnitskiy self-assigned this Nov 9, 2023
@idelpivnitskiy idelpivnitskiy merged commit 25b09db into apple:main Nov 11, 2023
15 checks passed
@idelpivnitskiy idelpivnitskiy deleted the retry-example branch November 11, 2023 00:41
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.

3 participants