You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently implementing rate limiting in my echo service and I thought it might be a good addition to the echo package considering that Rate Limiting is a popular use case in modern web applications. I don't know if this feature should be a candidate for echo-contrib or the actual echo package.
What I have in mind is token/IP based limiting so that limiting can be tracked per visitor.
The text was updated successfully, but these errors were encountered:
There is PR in labstack/echox#142 open with a redis based limiter.
A simple configurale rate limiter middleware without external dependencies would be a great addition for the echo package itself I guess.
That looks good. Basically my idea involves working with in memory token storage by default but creating an interface so any kind of storage can be plugged into it effortlessly.
the only external dependency would be the x/time/rate package which will be used for the default InMemory Limiter.
sync.Mutex will be used to tackle race conditions.
Feature Request
Checklist
I am currently implementing rate limiting in my echo service and I thought it might be a good addition to the echo package considering that Rate Limiting is a popular use case in modern web applications. I don't know if this feature should be a candidate for echo-contrib or the actual echo package.
What I have in mind is token/IP based limiting so that limiting can be tracked per visitor.
The text was updated successfully, but these errors were encountered: