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

Support backoff if rate limited #47

Open
stevejalim opened this issue Dec 9, 2024 · 1 comment
Open

Support backoff if rate limited #47

stevejalim opened this issue Dec 9, 2024 · 1 comment

Comments

@stevejalim
Copy link
Collaborator

While we're not likely to hit it (famous last words), there is a rate limit on the Smartling API, so we should build in a backoff mechanism so we don't end up in a broken state.

Whether that can be an in-process backoff or moving to a worker queue approach is up for discussion

@stevejalim
Copy link
Collaborator Author

The simplest implementation here would be a an in-process backoff - basically a gently increasing time.sleep(), but wondering what sensible backoff steps would be.

Smartling's API docs don't appear to disclose what the limit is - perhaps that depends on the customer or plan. However they do recommend an in-process time.sleep approach in their docs, plus say:

A typical value for the maximum delay is 30-60 seconds; and for the maximum number of retries, 5-10.

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

1 participant