Skip to content

API Rate Limit & Queue Capacity Calculator

Size queue buffer depth, burst drain time, worker concurrency and backoff against API rate limits and latency. Free, in your browser.

Your workflow in numbers

Enter your peak burst, sustained hourly traffic, target API rate limit, response latency and worker concurrency. Find out whether your queue drains cleanly or grows without bound. Nothing leaves your browser.

events/min
minutes

How long the burst stays at peak rate before returning to the sustained hourly rate.

events/hr
RPM
%

Reserve capacity for other callers, bursts and 429 avoidance. 20% headroom equals an 80% utilization cap.

ms
%

Extra calls per event caused by transient 429 or 5xx responses.

workers

Your estimate

Sustainable throughput (events/min): 228.6 /min (13,714/hr at 80% cap · API rate limit is the bottleneck). Peak burst deficit: 371.4 events/min. Required queue buffer depth: 5,572 events. Post-burst drain time: 43.3 min. Recommended worker concurrency: 2 workers. Recommended backoff strategy: Exponential + full jitter (5x). Running 5 concurrent workers (more than 2x the recommended 2) risks 429 storms unless gated by a shared token-bucket rate limiter. Queue memory assumes ~4 KB per buffered job (serialized JSON plus Redis/BullMQ overhead). Store large payloads in object storage and enqueue pointers only

Sustainable throughput (events/min)
228.6 /min13,714/hr at 80% cap · API rate limit is the bottleneck
Peak burst deficit
371.4 events/minAccumulates over 15 peak min
Required queue buffer depth
5,572 events~21.77 MB Redis / RAM
Post-burst drain time
43.3 min
Recommended worker concurrency
2 workersCurrent: 5 (Little's Law)
Recommended backoff strategy
Exponential + full jitter (5x)Exponential backoff with full jitter (2s, 4s, 8s, 16s, 32s), honor Retry-After and route to DLQ after 5 attempts.
Show comparison data
Results comparison
ItemValueNote
Conservative (60% RPM cap)171.4 events/minPeak buffer: 6,429 · drain: 90 min · 2 workers
Balanced (80% RPM cap)228.6 events/minPeak buffer: 5,572 · drain: 43.3 min · 2 workers
Aggressive (95% RPM cap)271.4 events/minPeak buffer: 4,929 · drain: 28.8 min · 3 workers
Utilization policy comparison (60% / 80% / 95%)
Utilization policyEvents/minEvents/hrPeak bufferQueue RAM (MB)Drain timeRec. workers
Conservative (60% RPM cap)171.410,2866,42925.1190 min2
Balanced (80% RPM cap)228.613,7145,57221.7743.3 min2
Aggressive (95% RPM cap)271.416,2864,92919.2528.8 min3

Running 5 concurrent workers (more than 2x the recommended 2) risks 429 storms unless gated by a shared token-bucket rate limiter.

Queue memory assumes ~4 KB per buffered job (serialized JSON plus Redis/BullMQ overhead). Store large payloads in object storage and enqueue pointers only.

Effective API ceiling is RPM x (100% minus safety headroom). Worker ceiling via Little's Law is concurrency x (60,000 / latency ms). Sustainable throughput is min(API ceiling, worker ceiling) divided by (1 + retry rate). Peak buffer depth is burst deficit per minute times burst duration, and drain time is buffer depth divided by post-burst net drain rate.

Browse data automation specialists

Reviewed specialists

Browse source-backed specialists alphabetically

How the estimate works

Sustainable call throughput is the minimum of (API RPM x utilization cap) and Little's Law worker throughput (concurrency x 60,000 / latency ms), divided by (1 + retry rate). Peak deficit times burst duration gives required buffer depth (modeled at 4 KB per serialized job for Redis/RAM). Drain time divides the buffered backlog by post-burst spare capacity; if sustained arrival meets or exceeds sustainable capacity, the queue grows unboundedly.

Frequently asked questions

Why keep 20% safety headroom below the API rate limit?

Third-party rate limits often apply per workspace or API key across multiple integrations, and short bursts or retry waves easily trigger 429 throttling. Running at an 80% cap leaves room for retries without cascading timeouts.

How does Little's Law determine worker concurrency?

Concurrency equals target requests per second multiplied by average response time in seconds. Too few workers waste available API quota; too many workers without a central token bucket trigger 429 storms.

What should we do when sustained load exceeds sustainable capacity?

A larger queue only delays the crash. Switch to batch/bulk API endpoints, filter or deduplicate events before enqueueing, cache repeat lookups or negotiate a higher rate limit tier with the vendor.

Keep planning