Reusable rate-limiting primitives and policies for protecting APIs.
This module provides pre-defined rate limiting policies based on the .NET 7+ Rate Limiting middleware.
Allows a specific number of requests in a fixed time window.
"RateLimiter": {
"PermitLimit": 100,
"WindowInSeconds": 60
}
Apply the rate limiter to a controller or endpoint:
[EnableRateLimiting("fixed")]
public class MyController : ControllerBase { }