Expand description
Rate limiting using pingora-limits
This module provides efficient per-route, per-client rate limiting using Pingora’s optimized rate limiting primitives. Supports both local (single-instance) and distributed (Redis-backed) rate limiting.
§Local Rate Limiting
Uses pingora-limits::Rate for efficient in-memory rate limiting.
Suitable for single-instance deployments.
§Distributed Rate Limiting
Uses Redis sorted sets for sliding window rate limiting across multiple instances.
Requires the distributed-rate-limit feature.
Structs§
- Rate
Limit Check Info - Detailed rate limit check result from a pool
- Rate
Limit Config - Rate limiter configuration
- Rate
Limit Manager - Route-level rate limiter manager
- Rate
Limit Result - Result of a rate limit check
- Rate
Limiter Pool - Thread-safe rate limiter pool managing multiple rate limiters by key
Enums§
- Rate
Limit Backend Type - Backend type for rate limiting
- Rate
Limit Outcome - Rate limiter outcome
Traits§
- Header
Accessor - Trait for accessing headers (allows abstracting over different header types)