Skip to main content
InterviewHubPRO
Section Overview
Q9

Question 9 of 50

Part 1: Request Pipeline, Dependency Injection & Web APIs (1 - 10)

18%
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:

  1. Fixed Window: Allows X requests per fixed time period.
  2. Sliding Window: Divides time into segments, preventing burst spikes at window boundaries.
  3. Token Bucket: Accumulates tokens at a steady rate with a burst capacity.
  4. Concurrency Limiter: Limits simultaneous active requests.