A worked example, rendered from real sample data. Sign in to run the tool on your own input.
capacity=100
refill_rate=10
interval=1
requests=50Rate Limiter Calculator (Token Bucket)
═════════════════════════════════════
Configuration:
Bucket Capacity: 100 tokens
Refill Rate: 10 tokens/1s
Tokens/Second: 10.00
Requests to Allow: 50
Capacity Analysis:
Max Burst Size: 100 simultaneous requests
Time to Refill: 10.0s
Tokens/Hour: 36000
Request Analysis:
Requests: 50
Time Required: 5000.0ms
Bucket State: OK
Scenarios:
Burst (100x): 10.00s
Sustained (10 req/s): OK
Peak (150 req): REJECTED
Recommendations:
- Set capacity to expected burst size
- Refill rate should match acceptable sustained traffic
- Consider adaptive refill rates during high load
Calculate rate limiting scenarios with token bucket algorithms and capacity planning. Part of the DevTools Surf developer suite. Browse more tools in the Developer Utilities collection.