medium
API Rate Limiter
A system to limit request rates for API endpoints
📝 Prompt Inhoud
Implement a rate limiter that can control the number of requests allowed in a time window. The limiter should support: sliding window algorithm, per-user or per-IP limits, different limits for different endpoints, proper handling of distributed systems (using Redis or similar), and response headers indicating rate limit status.