Rate limiting with Bucket4j and Redis: limits per user and service tier
Nginx limits by IP, so it blocks a whole NAT-shared office by mistake and has no idea which user is paying. The Token Bucket algorithm, and lock-free distributed rate limiting with Bucket4j, Redis and Spring Boot.














