Back to Projects
API Rate Limiter Microservice
A production-ready distributed rate limiting backend service implemented with Go and Redis, using the Token Bucket algorithm for high-concurrency throttling.

System Architecture
This microservice provides low-latency token bucket rate limiting designed to sit in front of upstream API gateways or internal services. It leverages Redis for centralized, atomic state tracking via Lua scripts, ensuring strict quota enforcement across distributed application instances.
The service exposes clean REST endpoints (including POST /check) that return HTTP 429 status codes alongside standardized Retry-After headers when client quotas are exhausted.
Technologies Used
Go (Golang)RedisDockerDocker ComposeREST APIToken BucketConcurrency