API Rate Limit Exhaustion
The Problem
Symptoms
Real-World Example
Zendesk API rate limit: 700 requests/minute
Your help center: 2,000 articles
Twig sync attempts:
→ Enumerate all categories: 5 requests
→ List articles in each category: 50 requests
→ Fetch full content for each article: 2,000 requests
→ Total: 2,055 requests
At 700/min max: 3 minute minimum
But:
→ Twig makes 50 concurrent requests/sec (3,000/min)
→ After 700 requests: 429 rate limit
→ Twig backs off 60 seconds
→ Resumes, hits limit again
→ Sync takes 45 minutes instead of 3Deep Technical Analysis
Rate Limit Types and Granularity
Rate Limit Discovery and Headers
Distributed Rate Limiting
Retry and Backoff Strategies
Request Batching and Pagination
Quota Pooling and Reservation
Cost vs Speed Tradeoffs
How to Solve
Last updated

