# Rate Limiting Middleware

Middleware that caps requests per client and answers 429 beyond it.

## What is **Rate Limiting Middleware**?

The **rate limiting middleware** caps how many requests a client may make in a time window, answering `429` beyond that.

```csharp
builder.Services.AddRateLimiter(o => o.AddFixedWindowLimiter("contact", l => { l.PermitLimit = 3; l.Window = TimeSpan.FromHours(1); }));
...
app.UseRateLimiter();
app.MapPost("/contact", Send).RequireRateLimiting("contact");
```

Level: Freelancer · [More ASP.NET Core terms at this level](https://www.ask-codey.com/glossary?category=aspnet-core&level=4)

Updated: September 27, 2026

Source: https://www.ask-codey.com/glossary/rate-limiting-middleware
