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

recipe: rate limiting #253

Closed
dryaf opened this issue Nov 8, 2015 · 2 comments
Closed

recipe: rate limiting #253

dryaf opened this issue Nov 8, 2015 · 2 comments

Comments

@dryaf
Copy link

dryaf commented Nov 8, 2015

it would be great if there was a recipe for using rate limiting.
just read http://www.vinaysahni.com/best-practices-for-a-pragmatic-restful-api

would be great if echo included this functionality
with returning headers like
X-Rate-Limit-Limit
X-Rate-Limit-Remaining
X-Rate-Limit-Reset

@dryaf
Copy link
Author

dryaf commented Nov 23, 2015

This might do the trick
https://github.com/valyala/fasthttp
and would give echo another boost
"Currently fasthttp is successfully used in a production serving up to 1M concurrent keep-alive connections doing 50K qps from a single server.
"... up to 10 times faster than net/http ..."

  • Server provides the following anti-DoS limits:
    • The number of concurrent connections.
    • The number of concurrent connections per client IP.
    • The number of requests per connection.
    • Request read timeout.
    • Response write timeout.
    • Maximum request header size.
    • Maximum request execution time.
    • Maximum keep-alive connection lifetime."

@vishr vishr mentioned this issue Nov 24, 2015
5 tasks
@vishr
Copy link
Member

vishr commented Nov 24, 2015

Closing to mention in #269.

@vishr vishr closed this as completed Nov 24, 2015
@vishr vishr mentioned this issue May 17, 2017
5 tasks
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