Advanced Rate Limiting
PrismSlidingWindowMiddleware provides production-grade rate limiting with sliding time windows, customizable keys, and standard X-RateLimit-* response headers.
Per-IP Rate Limiting
Per-IP
Per-API-Key Rate Limiting
Different rate limits based on API key tiers:Per-API-Key
Global Rate Limiting
Single shared limit across all clients:Global
Response Headers
Every response includes standard rate limit headers:Custom Key Extraction
Build custom rate limit keys from any request data:Custom Key
Authentication
Combine rate limiting with authentication.
Metrics
Monitor rate limit hits in your metrics dashboard.