6 Nov 2026·6 min read

Rate limits are a design constraint, not a bug

We once shipped a polling loop that made twenty-four requests a minute against an engine that allows two. The error code was 1015, and it was entirely our fault.

Video generation on the free tier allows roughly two requests per minute. Our first implementation polled every 2.5 seconds. That is twenty-four requests a minute — twelve times the allowance — and the engine answered exactly as it should have.

We spent an afternoon convinced we were being IP-blocked. We were being rate-limited by our own impatience.

What the error actually said

HTTP 429
error code: 1015

1015 is an edge-level rate limit, not an application error. It means the request never reached the product at all. Once you know that, the fix is obvious: send fewer requests.

The three changes

  1. Slow the loop. Start at 6 seconds, multiply by 1.25 each poll, cap at 15.
  2. Treat throttling as waiting, not failure. A 429 on a status check returns "still queued", not an error. The job is still running.
  3. Fewer, longer retries. Two attempts, twenty seconds apart, instead of three attempts two seconds apart.
A retry that fires immediately is not a retry. It is the same request, one second later, with the same result. — what backoff is for

Before and after

BeforeAfter
Poll interval2.5 s6 s → 15 s
Requests per minute244 → 1
Create retries3, at 1.5 s2, at 8 s / 20 s
On 429Show an errorKeep waiting
User experience"Failed""Rate limited — waiting 12s"
The general rule

When you build on someone else's quota, your architecture has to be shaped by that quota. A polling loop is a budget, and you are spending it every time it ticks.

Image generation never had this problem — its allowance is far higher. That is exactly why the bug survived until video: it only appeared under a constraint we had not designed for.

EngineeringReliability