DevConnectDevConnect
Sign up · Log in
← back to the feed
2

Cap-It - A distributed rate limiter

Built a distributed rate limiter and somehow ended up building a dashboard around it. Cap-It uses the token bucket algorithm with Redis-backed shared state, allowing multiple API instances to work with the same rate limits. It also includes Prometheus and Grafana for monitoring, k6 for load testing and a dashboard to manage policies, inspect analytics and test API requests. The idea was to understand how distributed rate limiting works beyond a single server, and this project turned into quite a rabbit hole. Here's a quick walkthrough of the current state. Still a work in progress, but there's plenty more to explore. GitHub: https://github.com/aayush4518/cap-it
0:00
Add a comment
0/2000