Module tenant_rate_limiter

Module tenant_rate_limiter 

Source
Expand description

Tenant-scoped rate limiting using governor (GCRA algorithm)

Provides per-tenant rate limiting for API endpoints using the GCRA (Generic Cell Rate Algorithm) which is efficient and doesn’t require background maintenance threads.

§2025 Best Practices

  • Uses governor crate for efficient GCRA implementation
  • Per-tenant keyed rate limiting (by header or API key)
  • Configurable quotas per tier

Structs§

TenantRateLimiter
Tenant-scoped rate limiter

Enums§

RateLimitTier
Rate limit tier for different tenant types