4 Replies
each prodecure will have different rate limit
for IP or sometthing idk
maybe whole database will have same limit for now if there is no simple solution
I’ve done it using redis before
simplest implementaion:
https://www.npmjs.com/package/express-rate-limit
npm
express-rate-limit
Basic IP rate-limiting middleware for Express. Use to limit repeated requests to public APIs and/or endpoints such as password reset.. Latest version: 6.7.0, last published: 7 months ago. Start using express-rate-limit in your project by running
npm i express-rate-limit
. There are 733 other projects in the npm registry using express-rate-limit.Looks like itll work 😄