ENGINEERING TOOL
Token Bucket Rate Limit Calculator
Model a constant traffic burst against token-bucket capacity and refill rate. Compare one shared bucket with multiple independent buckets before choosing a distributed rate-limit policy.
What this tool helps you estimate
Estimate burst allowance, sustained refill capacity and expected rejected requests, including how independent per-instance buckets multiply a quota.
- Token bucket burst capacity and refill rate
- Estimated admitted and rejected requests
- Burst exhaustion time
- Independent per-instance quota multiplication
- Refill time and distributed limiter assumptions
The interactive calculation runs in your browser. Treat the output as an estimate, document assumptions, and validate them against service telemetry and operational evidence before making production decisions.
Read Designing API Rate Limits for Bursty Distributed Workloads for quota scope, token-bucket trade-offs and distributed enforcement.
For shared state, see the Redis rate-limiter guide. For client recovery, read the retry-policy guide and use the Retry Backoff & Budget Calculator.
For broader workload assumptions, use the System Design Capacity Calculator and review the network capacity-planning guide.
For trusted client identity behind a proxy, read the Cloudflare and Nginx origin-security guide. For provider quotas in asynchronous workflows, see the Kafka notification architecture and define reliability objectives with the SLO error-budget guide.