koajs / ratelimit

Rate limiter middleware
MIT License
485 stars 57 forks source link

in-memory rate limiting #35

Closed KevinGrandon closed 5 years ago

KevinGrandon commented 6 years ago

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

starzou commented 6 years ago

vote for this issue

haoxins commented 6 years ago

koa-ratelimit is a wrapper of tj/node-ratelimiter, it's better to implement in-memory limit in node-ratelimiter IMO.

animir commented 6 years ago

@KevinGrandon Hi, https://github.com/animir/node-rate-limiter-flexible allows that and much-much more

tuananh commented 5 years ago

@haoxins would you accept a PR to add multiple drivers to ratelimit? default to using node-ratelimiter ?

haoxins commented 5 years ago

I'm open to this. :)

tuananh commented 5 years ago

@haoxins can you please help reviewing it #45

towertop commented 5 years ago

the PR #45 haven't been merged and released? Is it still going to be accepted?