Eclips UK All articles
Digital Transformation

Burst, Throttle, Clamp: Modelling API Limits Before an Integration Becomes Load-Bearing

Eclips UK
Burst, Throttle, Clamp: Modelling API Limits Before an Integration Becomes Load-Bearing

Photo: software developer monitoring API dashboard metrics on dual monitors, via www.manageengine.com

Every integration begins as a convenience. A nightly sync between the finance system and the CRM, a webhook that pushes orders into the warehouse platform, a small script that keeps two product catalogues aligned. Two years later the same integration is quietly load-bearing, and nobody in the room can say what happens when it hits its rate limit at 9am on the first working day of the month.

That is the moment to treat API limits as a contractual matter rather than a developer inconvenience.

Why the limit never appears in the demo

Sandbox environments are built to flatter. Quotas are generous, data volumes are small, and the sales engineer runs three requests, not three thousand. The numbers that actually govern production usually live in a developer portal, in a documentation page that the vendor reserves the right to amend, and in developer terms incorporated into the agreement by reference. None of those locations is where a UK buyer typically looks during diligence.

The numbers to extract first

Ask for four figures and get them in writing.

Sustained rate. Requests per second or per minute, and crucially whether the limit applies per application, per tenant, per user or per endpoint. A generous tenant-level allowance can still be consumed entirely by one chatty endpoint.

Burst allowance. Most modern APIs use a token bucket or a sliding window. The bucket size and refill rate matter more than the headline rate, because they determine whether a legitimate spike is absorbed or rejected outright.

Concurrency. Separate from rate, and often the real constraint on long-running batch operations.

Caps and overage. Daily or monthly call ceilings, the unit price beyond them, and whether overage is billed automatically or requires a purchase order. Ask also whether failed calls, including 429 responses, are counted against the quota. Many vendors count them, which turns a bad afternoon into an invoice.

Alongside these, request the versioning and deprecation policy. Twelve months of notice for a breaking change is a reasonable ask; ninety days is common and painful.

Testing it properly in the sandbox

A short, structured test takes an afternoon and will surface most of the surprises.

Begin with a ramp. Step the request rate upward in defined increments, holding each step for several minutes, and record where the first 429 appears and how the error is shaped. Read the response headers: whether remaining-quota headers exist at all, whether they are exposed to browser clients, and whether the Retry-After header is present and honest.

Second, test the error semantics. Does a throttled request return a JSON body that your middleware can parse, or an HTML page? Does the vendor impose a penalty period after a burst, sometimes called a cool-off? Are there separate, tighter limits on authentication endpoints — token refresh under load is a classic failure point that almost no integration plan accounts for.

Third, test the shape of bulk operations. Maximum page size, maximum payload, whether filtering is server-side or client-side, and whether GraphQL or search endpoints carry a query-complexity cost rather than a simple call count.

Finally, test expiry and revocation. What happens to in-flight work when a token is rotated or an OAuth grant is withdrawn? The answer determines whether your integration degrades gracefully or duplicates records.

Modelling peak rather than average

Averages flatter integrations in the same way that demos do. Build a simple model with four inputs: baseline calls per minute, a peak multiplier, retry amplification and headroom.

Take a distributor processing 3,000 orders on a normal day, with a 4.5 times multiplier on the Monday after a bank holiday weekend, and each order requiring six API calls across create, allocate, confirm and notify. Baseline is roughly 125 calls per minute across a working day; the peak becomes 560. If a transient failure triggers three retries per call, the effective load triples. A 1.5 times headroom factor then suggests a requirement of around 2,500 calls per minute — comfortably beyond a plan advertised as 600.

The value of the model is not precision. It is the conversation it forces about which multiplier is credible, and whether the contract should reflect the peak you have modelled rather than the average the vendor quoted.

Where the contract should carry the weight

Guardrails worth building

Instrument your own 429 rate and quota consumption, alert on burn rate rather than absolute usage, cache reference data that changes rarely, batch where the API supports it, and implement exponential backoff with jitter rather than fixed-interval retries. A retry storm is frequently the mechanism that converts a brief vendor wobble into a billing event.

The pattern across UK organisations is consistent: the integration is technically sound, the team is competent, and the failure is contractual. Fixing it after the dependency is established is expensive. Fixing it at signature costs an hour of legal review and a paragraph in a schedule.

All Articles

Related Articles

Consent at the Speed of Commerce: A UK Scorecard for Banner Performance and Consent Parity

Consent at the Speed of Commerce: A UK Scorecard for Banner Performance and Consent Parity

Metering the Machine: How UK Boards Can See the Real Cost of AI Workloads

Metering the Machine: How UK Boards Can See the Real Cost of AI Workloads

What the Browser Knows: Mapping the AI Tools Your Team Never Declared

What the Browser Knows: Mapping the AI Tools Your Team Never Declared