Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🌱 implement basic rate limiting for best practices worker. (#4090)
We are getting connection reset requests from bestpractices.dev and 429 errors from our GCS bucket for too many writes. The GCS limit (1000 QPS) is much higher, so just use the bestpractices.dev limit of 1 QPS. https://github.com/coreinfrastructure/best-practices-badge/blob/main/docs/api.md The construct was taken from https://go.dev/wiki/RateLimiting which "works well for rates up to tens of operations per second." Signed-off-by: Spencer Schrock <sschrock@google.com>
- Loading branch information