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

Maximum number of requests and request/second #59

Closed
lfoppiano opened this issue May 20, 2021 · 0 comments
Closed

Maximum number of requests and request/second #59

lfoppiano opened this issue May 20, 2021 · 0 comments

Comments

@lfoppiano
Copy link
Collaborator

After several weeks of investigation, I finally found a rather clean solution for implementing a mechanism for limiting the number of requests, using directly dropwizard:

  • QoSFilter: Example here allows setting the maximum parallel connections
  • DoSFilter: allow to set request/seconds and other mechanisms to protect the service.

Both return 503 by default, so no need to implement such a mechanism by hand.

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

No branches or pull requests

2 participants