Skip to content
Docs

Priority & throttling

Set a maximum number of concurrent requests and, when the router is at that limit, further requests wait and are admitted by a two-level weighted fair share. Below the limit nothing waits, so throttling only shapes traffic under load.

Across customers — set by the admin. Each customer (account) has a priority: standard (default), high, or vip. Customers of the same priority share capacity equally — three standard customers get a third each — and higher priority is served first and gets a larger share. A customer’s share does not depend on how many API keys they have.

Within a customer — set by the customer. A customer may have several API keys. Each key starts at standard; the customer can raise a key to high or vip to order their own keys within their own share. This never changes the customer’s share against other customers, so a customer’s vip key can take at most the customer’s whole share — never more.

Three customers, all standard → each gets 33.3% of capacity. One of them has ten keys: one vip, two high, seven standard. Those key priorities split that customer’s 33.3% among its own keys, so when its vip key is the one sending requests it can use up to the full 33.3% — but the customer still never exceeds its third, whatever its keys are set to.

  • Capacity & weights — Settings → Throttling & priority: turn it on, set max concurrent requests (0 = no limit), and optionally tune the tier weights (defaults: standard 1, high 4, vip 16).
  • Customer priority — the admin sets it per customer on the Users page.
  • Key priority — each customer sets it for their own keys on the API keys page.

Each freed slot goes to the next request chosen by smooth weighted round-robin at each level (customer, then key) — the same algorithm nginx uses for weighted load balancing. It is deterministic, hands out slots in proportion to the weights over time, and serves higher priorities first. Priority applies to the whole request, including streamed responses: the slot is held until the response finishes.