Skip to content

Api rate limiting with per tenant#196

Open
gloskull wants to merge 2 commits into
Utility-Protocol:mainfrom
gloskull:API-Rate-Limiting-with-Per-Tenant
Open

Api rate limiting with per tenant#196
gloskull wants to merge 2 commits into
Utility-Protocol:mainfrom
gloskull:API-Rate-Limiting-with-Per-Tenant

Conversation

@gloskull

Copy link
Copy Markdown
Contributor

This PR implements API Rate Limiting with Per-Tenant Token Buckets. It supports case-insensitive header extraction ('X-Tenant-Id'), falling back to the client's socket IP address. It integrates dynamic custom configurations, adds Prometheus metrics for tracking rejections and conformance, introduces detailed operational runbooks/monitoring documentation, and includes comprehensive integration testing that successfully compiles and passes with zero warnings.

Closes #127

google-labs-jules Bot and others added 2 commits July 17, 2026 15:45
- Support X-Tenant-Id header with client IP fallback
- Allow dynamic per-tenant limit configuration
- Introduce Prometheus rejections and conformance metrics
- Create architecture, monitoring, deployment, and runbook docs
- Add robust, time-tolerant integration tests

Co-authored-by: gloskull <189399494+gloskull@users.noreply.github.com>
Implement Per-Tenant Token Bucket Rate Limiting
@JerryIdoko

Copy link
Copy Markdown

resolve conflicts @gloskull

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.

API Rate Limiting with Per-Tenant Token Buckets

2 participants