valeriansaliou / node-fast-ratelimit

:umbrella: Fast and efficient in-memory rate-limit for Node, used to alleviate most common DOS attacks.
https://www.npmjs.com/package/fast-ratelimit
MIT License
108 stars 19 forks source link

FYI: Simple cross platform rate limiter #6

Closed simlu closed 3 years ago

simlu commented 6 years ago

Spend way to much time getting the compiled code to work across platforms, so I ended up writing my own (very simple) rate limiter:

https://github.com/simlu/lambda-rate-limiter

valeriansaliou commented 3 years ago

Hello there! I've fixed that in v3.0.0, using the JS-native Map object, which has as well be measured in my tests to be faster anyway. This new version does not compile any dependencies anymore, fixing this issue.