No more 3rd party libraries. .NET 7+ has built-in Rate Limiting. Protect your endpoints from DDoS or brute force in 3 lines of code.
app.UseRateLimiter(new FixedWindowRateLimiterOptions {
PermitLimit = 10,
Window = TimeSpan.FromSeconds(1)
});

