Closed KevinGrandon closed 5 years ago
vote for this issue
koa-ratelimit
is a wrapper of tj/node-ratelimiter,
it's better to implement in-memory limit in node-ratelimiter
IMO.
@KevinGrandon Hi, https://github.com/animir/node-rate-limiter-flexible allows that and much-much more
@haoxins would you accept a PR to add multiple drivers to ratelimit? default to using node-ratelimiter
?
I'm open to this. :)
@haoxins can you please help reviewing it #45
the PR #45 haven't been merged and released? Is it still going to be accepted?
Is in-memory only rate limiting supported? If so, it would be great to update the readme. if not, we'd love to see it added. (Running a toy webiste on a single server and don't want the overhead of setting up redis right now).
Express-rate-limit has this[1], and it would be great if some koa middleware has this as well.
https://github.com/nfriedly/express-rate-limit/blob/master/lib/memory-store.js