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

middleware: add support for request rate limiting #106

Open
1 task done
zhqqqy opened this issue Mar 11, 2022 · 0 comments
Open
1 task done

middleware: add support for request rate limiting #106

zhqqqy opened this issue Mar 11, 2022 · 0 comments
Labels
🎯 feature Categorizes as related to a new feature 🛰️ middleware Something about middleware

Comments

@zhqqqy
Copy link

zhqqqy commented Mar 11, 2022

Component

Middleware

Middleware

https://github.com/zhqqqy/flamego-limit

Is your feature request related to a problem? Please describe

Web frameworks generally need the function of current limiting.

Describe the solution you'd like

I implemented a simple current limiting middleware based on the sliding window algorithm, which can be enabled in the specified router, and the current limiting key can be customized.

Describe alternatives you've considered

It may also be possible to implement current limiting algorithms such as token buckets based on this

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@zhqqqy zhqqqy added the 🎯 feature Categorizes as related to a new feature label Mar 11, 2022
@unknwon unknwon changed the title add limit middleware for flamego middleware: add support for request rate limiting Mar 11, 2022
@unknwon unknwon added the 🛰️ middleware Something about middleware label Mar 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎯 feature Categorizes as related to a new feature 🛰️ middleware Something about middleware
Projects
None yet
Development

No branches or pull requests

2 participants