Limiter
The Rate Limiter is a middleware for the Quick framework that controls the number of requests allowed in a given time period. It helps prevent API abuse and improves system stability by preventing server overload.
🎯 Configurable maximum number of requests per client within a time window
⏳Resets the request counter automatically after the configured time.
🔑Uses a KeyGenerator function to define a unique client key (e.g., IP-based).
⚠️Allows defining a custom response when the request limit is reached.
⚡Implements sharding and optimizations to reduce concurrency issues.
// Function signature
q.Use(limiter.New(limiter.Config{}))