ASP.NET Core & Web API (50 Qs)•Part 1: Request Pipeline, Dependency Injection & Web APIs (1 - 10)
How does Rate Limiting work natively in .NET 7/8 (`Microsoft.AspNetCore.RateLimiting`)?
mid LevelMost AskedDependency InjectionPipesCI/CD & DevOps
In Simple Words: Built-in middleware providing 4 standard rate limiting algorithms:
- Fixed Window: Allows X requests per fixed time period.
- Sliding Window: Divides time into segments, preventing burst spikes at window boundaries.
- Token Bucket: Accumulates tokens at a steady rate with a burst capacity.
- Concurrency Limiter: Limits simultaneous active requests.