waldo-vision / waldo

Waldo Vision | Cheat detection
https://waldo.vision/
Mozilla Public License 2.0
244 stars 24 forks source link

API: Finalize API Rate limiting #21

Closed b3kN closed 1 year ago

b3kN commented 1 year ago

R&D: Find and implement best lightweight option for rate limiting on Next API system

ceriddenn commented 1 year ago

I'll keep adding options here as I look for more

  1. https://www.npmjs.com/package/lru-cache SOURCE Example: https://nextjs-rate-limit.vercel.app/ There are really not a lot of options if you search, we could use an express library but idk how viable it would be.
Huskydog9988 commented 1 year ago

This made the rounds a bit ago, and we may be able to use our own redis server instead of their paid platform https://github.com/upstash/ratelimit. If so, it seems like a great option for scalability.

winegard-developer commented 1 year ago

I haven't looked at this rate limiter, but I did see several concepts created with Redis that looked promising. We'll need something along these lines for the MVP, but feel free to tag in any additional frameworks/opportunities.

ceriddenn commented 1 year ago

Decided on https://github.com/microlinkhq/async-ratelimiter. Was updated within the last month and works w a redis server.