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

429 status code #99

Open
nickevansuk opened this issue Jul 13, 2020 · 2 comments
Open

429 status code #99

nickevansuk opened this issue Jul 13, 2020 · 2 comments
Labels

Comments

@nickevansuk
Copy link
Contributor

The specification currently does not recognise 429, which is common in real-world implementations.

Propose the following is added:

HTTP Status Code Interpretation Expected consumer (System 2) behaviour
429 Too Many Requests / Rate Limiting Retry after a random interval between 5 and 15 minutes, to ease load from multiple consumers
@nathansalter
Copy link

@nickevansuk Do you think it's worth allowing/requiring providers to supply the Retry-After header so that they can decide how much to push back, allowing them to do things such as prioritisation or exponential back-off?

@nickevansuk
Copy link
Contributor Author

Great idea @nathansalter! Gladstone already implements this in fact.

So we could amend the above proposal to: "Retry after the interval specified by the Retry-After header, or if not specified after a random interval between 5 and 15 minutes, to ease load from multiple consumers"

Or similar?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants