Fairness is a product policy
Global capacity limits prevent overload but do not decide who gets the next slot. Your application can use round-robin admission, weighted service classes or another explicit policy. The policy should govern new dispatch, not repeatedly interrupt already accepted remote jobs.
What to do next
- 01
Define an admission unit
Choose whether fairness applies to individual tasks, estimated work or customer service classes. Document the choice and keep an upper bound on how many local pending tasks each customer can add at once.
- 02
Schedule across eligible customers
Select from customer queues in the chosen fair order while respecting a global dispatch ceiling. Skip temporarily ineligible work without allowing one customer's blocked head item to prevent all other customers from progressing.
- 03
Test a noisy neighbor
Queue a large batch for customer A and a single task for B. Verify B receives admission according to policy, while A keeps making progress and neither customer can exceed the global capacity boundary.
A concrete example
Illustrative example: A adds fifty image actions and B adds one video action. A round-robin scheduler considers B on the next eligible turn rather than after all fifty A actions, subject to the application's declared capacity policy.
Before you call it ready
- One batch cannot consume every admission turn.
- Global active limits still apply.
- Blocked work does not stall unrelated customers.
When to stop or choose another method
Stop promising fairness based solely on multiple keys or a global FIFO queue; implement and test the scheduling policy you advertise.
