API Rate Limiting & Retry Strategies
Designs robust retry policies and rate-limit handling to ensure system resilience and prevent accidental traffic amplification.
This skill provides a structured framework for implementing API resilience patterns, focusing on sophisticated retry logic, exponential backoff, and idempotency. It helps developers classify failure types to avoid retrying permanent errors, calculate bounded retry budgets with jitter to prevent 'thundering herd' problems, and correctly interpret server-side throttling signals like Retry-After headers. By ensuring that retries are only attempted on idempotent operations, it protects against data corruption and service instability in distributed systems.
Key Features
01Idempotency rule design and validation for safe retries
02Exponential backoff and jitter strategy calculation
032 GitHub stars
04Failure classification for transient vs. permanent error handling
05Bounded retry budget management to prevent resource exhaustion
06Server-side throttling feedback and Retry-After header integration
Use Cases
01Building resilient API clients for third-party services with strict rate limits
02Implementing backoff logic for background workers processing distributed queues
03Designing reliable webhook consumers that handle duplicate deliveries gracefully