jhurliman / node-rate-limiter

A generic rate limiter for node.js. Useful for API clients, web crawling, or other tasks that need to be throttled
MIT License
1.5k stars 132 forks source link

support redis store #12

Closed thedug closed 9 years ago

thedug commented 9 years ago

Support for redis would allow for deployment in a cluster

jhurliman commented 9 years ago

I agree that support for a shared data store would be very useful in server scenarios. However, it will probably stay outside of the scope of this project which is meant to be a very lightweight token bucket implementation in pure JS. I would recommend looking at https://github.com/tj/node-ratelimiter which is designed to use Redis as a backing store.