skuzzle / cmp

Create and share public counters
https://countmy.pizza
MIT License
6 stars 1 forks source link

Distributed rate limiting #60

Open skuzzle opened 4 years ago

skuzzle commented 4 years ago

Client dependent RateLimiters are stored in-memory in each backend instance. This means that rate limiting is not working as intended when running multiple backend instances (as the same client will have independent RateLimiter instances on each instance).

Not quite sure on how to resolve this.

  1. Store rate limit state in central Redis cache?
  2. Add single instance rate limiting proxy service?