Comments (5)
Yeah, that is an option, I just think it's better to have as a default a limit on memory so the default usage will not spiral out of memory, and if you don't want to have a limit you could implement your own strategy, but up to you what you think is a better default!
from elysia-rate-limit.
Whoops, I'll merge it then. I already tested it's functionality.
from elysia-rate-limit.
we already have the way to implement our own strategy, is context
sufficient enough for you? happy to take in feedback
from elysia-rate-limit.
Hey, it's been a while but now I got a bit of my time to working on this. I've implemented a new caching strategy as requested and published in version 3.1.0-beta.0
. Could you try this out if it works for you?
from elysia-rate-limit.
code looks fine but I think you didnt ship the dist folder to npm :)
from elysia-rate-limit.
Related Issues (16)
- Support for Elysia 0.8 HOT 1
- Unable to determine client IP HOT 2
- how use `skip`? HOT 1
- Default generator is unable to determine client IP address HOT 1
- Response is never given to the user HOT 3
- Unable to determine client IP address HOT 8
- Rate limit for individual endpoint HOT 18
- [BUG] On limit exceeded, response is not given HOT 10
- Elysia is not initialized yet. Please call .listen() first. HOT 4
- Throw the bearer utility into the generator HOT 6
- rateLimit for each path has a common counter HOT 3
- duration overwritten HOT 7
- Duplicate run when use multiple time HOT 2
- Ability to hide Ratelimit-* headers HOT 1
- Custom cache context HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elysia-rate-limit.