Enterprise
Capacity planning for a rate-priced API
Capacity planning for oslew means sizing to your busiest minute, not your monthly total, because every plan is a sustained rate and a burst for each product, with no monthly quota. Convert monthly volume into a peak rate, check it against each product’s sustained rate separately, give batch jobs a key of their own, and read the RateLimit headers to see the headroom you really have. When the peak is above what the smaller plans sustain, Scale or an Enterprise contract is the answer.
Last reviewed
A plan that sells a monthly allowance is sized by adding requests up. A plan that sells a rate is sized by finding the fastest moment, and that is a different habit. How the token bucket behind each oslew plan works is explained in rate limits versus quotas; this page is about using it to choose a plan and to keep a workload inside it.
From a monthly figure to a peak rate
Take an order-management system that geocodes about 6,000,000 addresses a month. Spread flat over a 30-day month of 2,592,000 seconds, that is about 2.3 requests a second — a number that is true and almost useless, because nobody’s traffic is flat.
- Find the busy hours. Suppose orders arrive over about 10 hours a day, on 22 working days a month. That is 6,000,000 requests over 22 × 36,000 seconds, or about 7.6 a second while the business is open.
- Find the busy hour. If the busiest hour runs at twice the working-day average, it needs about 15 requests a second.
- Find the busy minute. If the busiest minute inside that hour runs half as fast again, it needs about 23 requests a second.
Now compare that with a plan. The Address plan sustains 20 requests a second with a burst of 100. At the peak minute, the bucket loses three tokens a second more than it refills, so the burst lasts about 33 seconds, and for the rest of that minute roughly three requests in every twenty-three are refused with a 429. The monthly average suggested the smallest paid plan with room to spare; the peak says it is marginal.
There are three honest ways out: smooth the peak, by geocoding orders from a queue rather than inline, so the busiest minute’s work is spread over a few extra seconds; accept a few retried requests in the worst minute of the month; or buy the rate, which on the Scale plan is 100 requests a second sustained, burst 300. The ratio of peak to average is the number that decides it, and it is worth measuring from your own logs rather than guessing.
Sustained rate and burst do different jobs
The sustained rate is what your busiest minute has to fit inside. The burst is for the seconds within it: a page load that fires several requests together, a queue that restarts and drains, a handful of retries arriving at once. A plan fits a workload when the peak minute sits under the sustained rate and the clustering within each second sits under the burst.
A loop that sends as fast as it can and treats refusals as its speed control lives permanently in the burst, spends it on itself, and leaves nothing for the spikes the burst exists to absorb. Pace a backfill to the sustained rate instead.
Each product is sized on its own
Every key has a separate bucket for each product its plan includes — Address, Search, Routing, Platform and, on Enterprise, Operator — and they do not share. Saturating routing does not slow geocoding, which is good for isolation and means each product needs its own peak estimate:
- A checkout form sends several autocomplete requests on the Search product for every address a customer types, then one validation or geocode on the Address product when the form is submitted. Its Search peak is several times its Address peak. The Search plan sustains 20 requests a second sustained, burst 100 on Search.
- A routing workload on the Routing plan gets 5 requests a second sustained, burst 25 on routing, a lower figure than that plan’s address rate. The Platform plan raises routing to 20 requests a second sustained, burst 100.
- An AI agent draws on a different bucket from the one its calls suggest. Each request to the MCP endpoint takes a token from the cheapest product the key holds, which is Address on every self-serve plan, so an agent planning routes draws on the address bucket. Size agent traffic against the address rate, and give each agent its own key.
Every request takes one token from its product’s bucket, whatever it asks for: a geocode costs the address bucket one token, and a full travel-time matrix costs the routing bucket one token too.
Matrices are sized by side, not count
Because a matrix is one request, what a routing plan limits is its size. The largest matrix each plan answers is 100 × 100 on Routing, 200 × 200 on Platform, 500 × 500 on Scale and 500 × 500 on Enterprise. A larger request is refused with a 403 whose body states the cap, not with a 429, and waiting will not change it. Since the matrix is all points to all points, the plan to choose is the one whose side fits the largest set of points you need compared at once — the vans and their stops, a customer and every store — and within that side, one large matrix is cheaper on the bucket than many small ones. The distance matrix page covers reading the answer.
Batch jobs are paced at the key’s own rate
A batch job has no rate of its own. It takes one token per row from the address bucket of the key that submitted it, as fast as that bucket refills, and reports the seconds it expects to need as remaining_s: rows divided by the key’s rate. A 500,000-row backfill on the Address plan’s 20 a second needs 25,000 seconds, nearly seven hours; on Scale’s 100 a second it needs 5,000 seconds. At high rates the geocoding itself can be slower than the bucket, so treat the estimate as a floor.
While a job runs it can use the key’s whole address rate, and anything else sent with that key competes for the same tokens — including your own polls of the job’s status. Give bulk work its own key, and poll or collect from another key of the same account, since jobs belong to the account. Each file is capped at 2,000,000 rows and 64 MiB; larger backfills are several jobs. Batch geocoding describes the whole lifecycle.
Reading headroom, and what a refusal means
Every admitted request to a keyed route reports its bucket: RateLimit-Limit is the sustained rate sold for that product, RateLimit-Remaining the whole tokens left, and RateLimit-Reset the seconds until the bucket is full again, with X-RateLimit- aliases for older clients. Watching Remaining lets a loop slow down before it is refused rather than after. When a bucket is empty the answer is HTTP 429 with a Retry-After in whole seconds, never less than one; nothing has run out, and the same request is admitted after the wait. The rate-limits guide shows the clients’ retry helpers.
Behind a fleet of pods
With GEO_LIMIT_REDIS_URL set, pods exchange what each key spent every two seconds and each serves its share of the rate; without it, every pod enforces a key’s whole rate. In the hosted service that means a key’s rate is sold once, not once per pod, and adding capacity on oslew’s side does not change what a key may send. Because shares are exchanged at intervals rather than instantly, enforcement across the fleet is close rather than exact over the shortest windows. In a dedicated deployment the shared limiter is part of the configuration to get right: leave it out, and a key spread over several pods can be served faster than its plan.
When Scale or Enterprise is the answer
Move to Scale, at $999 a month, when the busiest minute on any product is above what a smaller plan sustains, or when you need matrices larger than Platform answers. Scale carries the same rate on all four products, so it also suits a workload whose peaks move between products. Move to Enterprise when the peak is above Scale’s: the Enterprise template starts from the same rates, and higher ones are negotiated. Enterprise is also the only route to the operator product and to a deployment of your own. The pricing page lists every plan, and procurement covers how an Enterprise contract starts.
Limits worth knowing
- There is no overage and no way to buy a temporary increase inside a self-serve plan: the rate is the lever, and changing it means changing plan.
- Batch throughput can fall below the key’s rate at high rates, so a job’s time estimate is a lower bound.
- Fleet-wide enforcement is approximate over very short windows.
- Nothing about a plan’s rate is a latency commitment; it caps how fast you may send, not how fast each answer arrives.
Bottom line
Size each product to its busiest minute, let the burst cover the seconds inside it, and keep bulk work and agents on keys of their own. A monthly total only tells you whether you need oslew at all; the peak rate tells you which plan.
Questions
How do I turn a monthly geocoding volume into a rate?
Find the busiest minute, not the average. Divide the monthly total by the hours your system is actually busy, then scale up by how much busier the peak hour and the peak minute are than that average. Your own request logs, counted per second over a busy week, give the ratio better than any rule of thumb.
What happens when traffic goes over the plan’s rate?
Short spikes are absorbed by the burst. Beyond it, requests are refused with HTTP 429 and a Retry-After header in whole seconds, and nothing is charged or used up. The same request sent after the wait is admitted, so a backfill should wait and retry while an interactive request should usually fail fast.
Does a batch job count against my rate?
Yes. A batch job takes one token per row from the address bucket of the key that submitted it, at that key’s own sustained rate. While it runs it can use the whole of that bucket, so give bulk work its own key and poll the job from a different key of the same account.
Does running more servers or pods give a key more capacity?
No. Behind a fleet, the serving pods share each key’s rate, so a plan’s rate is delivered once in total rather than once per pod. The RateLimit headers always quote the rate you bought, never one pod’s share of it.
When is Enterprise the answer for capacity?
When your busiest minute on any product is above what Scale sustains, when you need the operator product for traffic or transit feeds, or when the service has to run in a deployment of its own. The Enterprise template starts at Scale’s rates, and anything above them is negotiated.