News for hackers. Stuff that matters.

Show HN: Distributed Rate Limiter – 50K+ RPS, Redis-Backed, Production-Ready

https://github.com/uppnrise/distributed-rate-limiter

Hi HN! I built a distributed rate limiter using the token bucket algorithm with Redis backing.

Key highlights: • 50,000+ requests/second throughput with <2ms P95 latency • Redis-backed distributed state for multi-instance deployments • 18 REST API endpoints for rate limiting, config, and monitoring • 265+ tests including load tests and integration tests • Docker/Kubernetes ready with comprehensive documentation

Built with Java 21 + Spring Boot. Perfect for protecting APIs, microservices, or SaaS platforms from abuse.

The pain point I solved: existing solutions were either too simple (in-memory only) or too complex (enterprise-only). This fills the gap with a production-ready, easy-to-deploy solution.

Try it: Download the JAR, start Redis, and you're rate limiting in 30 seconds.

Would love feedback on the API design and performance characteristics!

GitHub: https://github.com/uppnrise/distributed-rate-limiter

( 1 comment | 2 points | on HN )
Re:Show HN: Distributed Rate Limiter – 50K+ RPS, Redis-Backe... by 0megion on Thursday October 02, 2025 @03:58AM (#45447261)
If requests are already hitting your servers, it’s too late — you’re burning CPU and bandwidth before rejecting. I built Rately to solve this at the edge: set limits by user, IP, or plan (e.g. free = 1k/day, pro = 1M/month) and return 429s before traffic reaches your infra. Keeps apps simple and protects backend capacity.