API Rate Limiting Expert
Implements robust API rate limiting strategies, algorithms, and HTTP conventions to protect services from abuse and ensure fair usage.
This skill provides comprehensive patterns and best practices for implementing rate limiting across various architecture levels. It covers essential algorithms like Token Bucket and Sliding Window, distributed implementation using Redis, standardized HTTP header conventions, and client-side retry logic. Whether you're building a new API or scaling existing infrastructure, this guide helps you configure tiered limits, prevent race conditions in distributed environments, and integrate throttling at the gateway or middleware level to ensure system stability.
Key Features
0132 GitHub stars
02Standardized HTTP header configurations including RateLimit-Limit and Retry-After
03Distributed rate limiting strategies using Redis and atomic Lua scripts
04Client-side handling patterns with exponential backoff and jitter
05Implementation patterns for Token Bucket, Leaky Bucket, and Sliding Window algorithms
06Multi-tier limiting strategies for IP-based, user-based, and endpoint-specific control
Use Cases
01Configuring infrastructure-level throttling using NGINX or API Gateways
02Protecting public APIs from brute-force attacks, scrapers, and resource abuse
03Implementing tiered subscription levels and usage quotas for SaaS applications