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

ratelimit.kontain.me #65

Open
Dentrax opened this issue Nov 16, 2021 · 0 comments
Open

ratelimit.kontain.me #65

Dentrax opened this issue Nov 16, 2021 · 0 comments

Comments

@Dentrax
Copy link

Dentrax commented Nov 16, 2021

A few weeks ago, @developer-guy @erkanzileli shared me this project and I really liked the fun behind the idea! We'd like to add interesting features to extend this project!


Rate limit the image pull operation to simulate some chaos testing scenarios.

While having a global rate limiter is useful in some cases, another common scenario is to implement a rate limiter per user, based on an IP address.

If I run $ docker pull ratelimit.kontain.me/ubuntu a few times, service should being started to return 429 Too Many Requests response for my IP address for a few minutes or hour.

Maybe we can use the golang.org/x/time/rate package in this case.

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