What problem does it solve? APIs without rate limiting are vulnerable to abuse, brute-force attacks, and resource exhaustion, while poorly designed limits frustrate legitimate users. This Skill guides you through designing production-grade rate limiting that balances abuse prevention with fair usage. ## Core Features & Use Cases - Algorithm Selection: Compares token bucket, sliding window, fixed window, and leaky bucket with working Python and Redis implementations for each. - Multi-Tier & Per-Endpoint Limits: Defines different limits for free/basic/premium tiers and stricter rules for sensitive endpoints like login (5 attempts per 15 minutes). - Distributed Enforcement: Provides atomic Redis Lua scripts, Express.js middleware, bypass rules, 429 response headers, and Prometheus monitoring. - Use Case: You are launching a public REST API and need to prevent scraping while allowing paying customers higher throughput. Use this Skill to implement a Redis-backed token bucket with tiered limits, proper Retry-After headers, and IP whitelisting for internal services. ## Quick Start Design a rate limiting strategy for my REST API with tiered limits for free and premium users using Redis.