ai-code-battle/ratelimit
jedarden 7e131d310f feat(api): add token-bucket rate limiting to public endpoints
Adds ratelimit package with per-IP and per-key HTTP middleware.
Applied to register (5/hr), feedback (20/hr), predict (60/hr),
and job submission (5/day) endpoints. Includes metrics counter
for rejected requests and periodic bucket cleanup goroutine.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-22 16:52:29 -04:00
..
ratelimit.go feat(api): add token-bucket rate limiting to public endpoints 2026-04-22 16:52:29 -04:00
ratelimit_test.go feat(api): add token-bucket rate limiting to public endpoints 2026-04-22 16:52:29 -04:00