Skip to content

feat(#259): add API rate limiting#280

Merged
fejilaup-cloud merged 2 commits intoAtomicIP:mainfrom
Chibey-max:blackboxai/issue-259-rate-limiting
Apr 24, 2026
Merged

feat(#259): add API rate limiting#280
fejilaup-cloud merged 2 commits intoAtomicIP:mainfrom
Chibey-max:blackboxai/issue-259-rate-limiting

Conversation

@Chibey-max
Copy link
Copy Markdown
Contributor

  • Implement token-bucket rate limiter using governor crate
  • Add per-IP rate limit (100 req/min) with fallback when no API key
  • Add per-API-key rate limit (1000 req/min) via x-api-key header
  • Return 429 Too Many Requests with JSON error body on limit exceeded
  • Use DashMap for thread-safe concurrent limiter storage

closes #259

- Implement token-bucket rate limiter using governor crate
- Add per-IP rate limit (100 req/min) with fallback when no API key
- Add per-API-key rate limit (1000 req/min) via x-api-key header
- Return 429 Too Many Requests with JSON error body on limit exceeded
- Use DashMap for thread-safe concurrent limiter storage
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Apr 23, 2026

@Chibey-max Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@fejilaup-cloud fejilaup-cloud merged commit 143523d into AtomicIP:main Apr 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add API Rate Limiting

2 participants