概要
This skill provides production-ready implementations for API rate limiting and request throttling, essential for protecting backend services from abuse and managing tiered subscription models. It includes detailed patterns for Token Bucket and Sliding Window algorithms, specific configurations for SlowAPI in FastAPI environments, and custom distributed limiters using Lua scripts in Redis. By implementing these patterns, developers can prevent brute-force attacks, handle '429 Too Many Requests' errors gracefully, and ensure fair resource allocation across different user tiers such as Free, Pro, and Enterprise.