High-Throughput API Gateway & Rate Limiter
Build a token-bucket distributed traffic proxy in Go capable of 25k req/s.
Problem Statement
Microservice architectures require unified edge entrypoints that enforce rate limits, authenticate JWT tokens, and mitigate DDoS spikes with sub-millisecond p99 latency overhead.
What You'll Build
A distributed reverse proxy gateway in Go that consumes tokens via atomic Redis Lua scripts, proxies requests to backend pools, and exports Prometheus metrics.
Technology Stack
Skills You'll Master
Requirements & Prerequisites
- Familiarity with Go syntax, goroutines, and channels.
- Docker Desktop installed for spinning up local Redis instances.
Guided Milestones (3)
Step-by-Step ArchitectureReverse Proxy Core & Upstream Pool
Construct HTTP reverse proxy in Go with connection pooling and health checks.
- Reverse proxy handler
- Round-robin load balancer
Atomic Redis Token Bucket
Implement sliding-window token bucket algorithm with Lua scripts for atomicity.
Prometheus Telemetry & Benchmarks
Add Prometheus /metrics endpoint and benchmark throughput using wrk/k6.
Project Submission & Verification
Submit your public GitHub repository and live deployment link for automated test checks.
Add to ASCI Portfolio
Proves mastery of high-concurrency backend systems and atomic distributed transactions.
