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

Implement retries #7

Open
jeramyRR opened this issue May 31, 2021 · 0 comments
Open

Implement retries #7

jeramyRR opened this issue May 31, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@jeramyRR
Copy link
Owner

jeramyRR commented May 31, 2021

The library needs to implement retries on certain conditions just like the official C# SDK.

The instances I can think of now where retries need to happen are on 400s, 404s, and 429s (request rate too large).

How will we know when a request has been throttled? The response header, coming from Cosmos, will contain an entry called "x-ms-retry-after-ms". This header indicates that the request was indeed throttled, and lets us know when we should try the request again.
See Common Azure Cosmos DB REST response headers for a list of common response headers.

@jeramyRR jeramyRR self-assigned this May 31, 2021
@jeramyRR jeramyRR added the enhancement New feature or request label May 31, 2021
@jeramyRR jeramyRR added this to New in Cosmos Db Client for Elixir via automation May 31, 2021
@jeramyRR jeramyRR pinned this issue May 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

1 participant