apache / apache/openwhisk-client-js
handle 429 responses with exponential backoff retries
Open
- Dominant language
- JavaScript
- Stars
- 84
- Forks
- 55
- PR merge metrics
- No merged PRs in 30d
Description
When using `openwhisk.action.invoke()` or other operations one can encounter HTTP 429 TOO MANY REQUESTS status code responses from [Openwhisk's rate limiting](https://github.com/jberstler/openwhisk/blob/master/docs/reference.md). It would be nice if the openwhisk js client can provide a retry mechanism out of the box.
The suggested approach is a exponential backoff. This was implemented e.g. here: https://github.com/apache/incubator-openwhisk-package-cloudant/pull/90
Contributor guide
Assessment
This issue has not been assessed yet.