arXiv:2611.02926cs.DCNov 2026

Manuscript Offprint

arXiv:2611.02926

Dispatch Control for Priority-Based, Multi-Tenant Workflows under Multi-Resource External Rate Limits

Stanislav Kosorin, Trever Schirmer, Leonard Wossnig, David Bermbach

Stanislav Kosorin*, Trever Schirmer*, Leonard Wossnig†, David Bermbach*

*Technische Universität Berlin, Scalable Software Systems Research Group {stk,ts,db}@3s.tu-berlin.de

†University College London, Department of Computer Science leonard.wossnig@forgent.ai

Abstract—Workflow engines orchestrate pipelines of activities, which often call external APIs, on a fixed pool of worker slots, the threads that run them. When an API enforces a hard rate limit shared by all tenants and priorities, a throttled call that retries after a backoff keeps its worker slot and starves other tenants. Large Language Model provider APIs are particularly complex: their per-organization caps are low and bind independently on requests and tokens per minute. The operator can neither reconfigure the cap nor observe saturation before a request fails, so classical fair-queuing assumptions do not hold. We present Backpressure, a worker-side admission gate. It checks each call's cost atomically against shared admission state and enforces fairness over requests and tokens. A denied call releases its worker slot and waits on a durable timer, so waiting no longer blocks execution capacity. We compare against a naive retry, the AI gateway LiteLLM, and the built-in throttle of the workflow engine Temporal. On a workload with three priority classes, Backpressure raises fairness (Jain's index over each queue's fraction of its entitled share) from 0.60 to 0.89, where 1.0 is ideal. It also cuts high-priority tail latency roughly 8 ×. When tokens are the binding limit, all request-based baselines serve every priority equally, whereas Backpressure keeps the priority order and reaches a dominant-resource fairness of ~0.99. Admission costs one round trip to shared state, adds no measurable latency when the cap does not bind, and fails open if shared state is unavailable.

Index Terms—admission control, fairness, multi-tenancy, workflow engines, rate limiting, multi-resource fairness, LLMs

I. INTRODUCTION

Workflow engines run production pipelines for many tenants as sequences of steps, called activities. Each running activity occupies one of a fixed number of worker slots, the engine's scarce resource. Activities routinely call rate-limited external APIs, and many tenants and priority classes share one API ceiling. Noisy neighbors can exhaust it, but the operator does not own it and so cannot enforce fairness directly. Large Language Model (LLM) providers are not the only source of such caps, but they are a particularly hard case. Their per-organization caps on Requests Per Minute (RPM) and Tokens Per Minute (TPM) [1]–[3] are orders of magnitude below

traditional cloud services. The two also bind independently, so the request mix, not request count alone, decides which one saturates. Yet workflow engines have no mechanism to share such a ceiling among tenants. They dispatch by queue state and worker availability and learn of overload only when an HTTP 429 arrives. This leaves operators three workarounds, none of which decides, before a call is sent, which tenant may use the shared cap. (a) In-process SDK retries couple worker concurrency to provider backoff. (b) Engine-native throttles limit dispatch without observing upstream 429s. (c) HTTP retry gateways absorb retries while holding the caller's connection open [4]–[7]. In every case, a noisy tenant can starve low-volume tenants. Because rejected calls also count against the external cap, the retries turn into a self-inflicted denial of service.

Fair-share scheduling itself is well understood, e.g., Weighted Fair Queuing (WFQ) [8] and Deficit Round Robin (DRR) [9], but these algorithms assume that the operator controls the contended resource. Here the cap belongs to the provider and cannot be reconfigured. We present Backpressure, an admission control approach for workflow engines that acts only on the operator's own workers. A denied request releases its worker slot and defers on a durable timer, so the wait costs no execution capacity. Our prototype is a plugin for Temporal [10]. Before an activity issues its first HTTP call, the worker checks the call's cost atomically against shared admission state. That state enforces the global cap, a per-priority split, and a weighted fair share per tenant within a priority. A denial returns a precise retry interval for the workflow's durable sleep. On a cross-priority workload, Backpressure raises fairness from 0.60 to 0.89 (achievement-Jain [11], 1.0 is an even split). It also cuts high-priority tail latency 8 × and drops the 429 share from 23% to 4%, at ~10% lower mean throughput. When tokens bind, every request-only baseline flattens priority, while Backpressure keeps the configured ordering at ~0.99 dominant-resource fairness (DRF). Our main contributions are:

  • We formalize fair sharing of hard, externally enforced, multi-resource rate limits in multi-tenant workflow en-

This work was conducted in collaboration with Forgent AI GmbH, which provided the use case and production insights. S. Kosorin and L. Wossnig are also affiliated with Forgent AI GmbH.

Figure

Fig. 1. One worker slot under overload. A high-priority request (P1) arrives at t=0t=0 as a noisy tenant enters a 7s retry backoff. In (a), the solid bar holds the slot. In (b), the deny frees the slot at once, indicated by a hatched bar.

gines (Sections II and III).

  • We design Backpressure, a worker-side gate that admits each call against shared request and token buckets with priority and dominant-resource fairness, and turns a denial into a durable timer that frees the worker slot (Sections IV and V).

  • We release Backpressure as open source and evaluate it against three baselines with a mock rate-limited LLM API (Section VI).