rate-limiting
Installation
SKILL.md
Rationale
Rate limiting protects applications from abuse, ensures fair resource usage, and prevents cascading failures during traffic spikes. Without proper rate limiting, APIs can be overwhelmed by malicious or accidental high-volume requests, leading to degraded performance or outages. These patterns provide production-ready approaches to request throttling in ASP.NET Core applications.
Patterns
Pattern 1: Built-in Rate Limiting Middleware (.NET 7+)
Use the built-in Microsoft.AspNetCore.RateLimiting middleware for common scenarios.