When one slow authorized target occupies every global worker, buying more network capacity may not fix the missed work. First prove where the client’s in-flight slots and queue time are going; then reserve bounded capacity for independent sources without exceeding one global ceiling.
This guide is for a platform owner running several authorized collection or verification tasks with one client-side concurrency budget. Its download is an offline synthetic scheduler experiment, not IPHTML or provider data. Prefer a documented API, licensed feed, export, or manual check when it meets the decision need.
Recognize cross-source starvation
Starvation is visible when a slow source fills the shared in-flight budget while an unrelated source has arrived, has permission to run, and still waits until its deadline passes. Measure each scheduled job: source, arrival, admission time, finish time, deadline, cancellation/cleanup completion, validator outcome, and the global in-flight count. A supplier’s label such as “connections” may have a different boundary from your application job; likewise, requests per second and in-flight work are separate limits. Do not substitute one for another.
A shared FIFO queue is often a reasonable baseline. It becomes a poor fit when sources represent independent failure, authorization, or business boundaries and a long service time at one can consume every slot. AWS describes limiting threads or other resources per workload, while Microsoft’s bulkhead guidance also calls out the cost: partitions add complexity and can leave capacity underused. Those are design trade-offs, not a claim about any proxy service.
Run one finite, reproducible comparison
Use the same two global slots in both policies. The invented ledger has four jobs: slow-source S1 and S2 arrive at time 0, each needs 8 units and is due at 9; healthy-source H1 and H2 arrive at time 1, each needs 1 unit and is due at 3 and 4. Every job is scheduled and every job must appear exactly once in the result.
| Policy | Healthy on time | Slow on time | Drain time | What it shows |
|---|---|---|---|---|
| Shared global FIFO, 2 slots | 0/2 | 2/2 | 9 | The two slow jobs hold both slots until time 8. |
| Partitioned, slow=1 and healthy=1, still 2 total | 2/2 | 1/2 | 16 | Healthy work is protected; slow work drains later. |
The partition does not create capacity. It changes who may use the fixed capacity. This experiment deliberately runs even late jobs to completion so that every scheduled job is accounted for; a production expiry policy is a separate, explicit admission decision. Report class-level on-time delivery and drain time, not only an aggregate completion count.
Reproduce it offline
Download the standard-library Python experiment. It has fixed arrivals, order, service times, deadlines, and a global budget of two; it makes no network request, reads no files, and contains no credentials, targets, or proxy activity.
python3 proxy-workload-isolation.py
Exact output:
offline synthetic scheduler experiment; network_requests=0
global_slots=2; mixed jobs=S1,S2 arrive 0/service 8/deadline 9; H1,H2 arrive 1/service 1/deadlines 3,4
shared FIFO: healthy=0/2 on-time; slow=2/2 on-time; drain=9; accounted=4/4
partitioned slow=1 healthy=1: healthy=2/2 on-time; slow=1/2 on-time; drain=16; accounted=4/4
one-source-idle jobs=S1,S2 only; healthy reservation is idle
shared FIFO / healthy idle: healthy=0/0 on-time; slow=2/2 on-time; drain=8; accounted=2/2
partitioned slow=1 healthy=1 / healthy idle: healthy=0/0 on-time; slow=1/2 on-time; drain=16; accounted=2/2
PASS: every scheduled job completed exactly once; reservation protects healthy deadlines but can lengthen slow-source drain
The idle-source case has no scheduled healthy jobs; its 0/0 is not a rate. It rejects a universal performance-win claim: the unused healthy reservation doubles slow-source drain from 8 to 16. The program rejects empty input, duplicate names, non-integer/bad times, unknown sources, and reservations that do not sum to the global budget. Its assertions check accounting and this synthetic arithmetic, not real sockets, cancellation behavior, supplier limits, or production throughput.
Implement the guard without creating a new blockage
- Partition by a real boundary: independent target ownership, authorization, failure domain, or delivery priority—not an arbitrary hostname list.
- Keep one global admission ceiling. Have a dispatcher atomically choose a job only when both global and source capacity are available.
- Do not acquire a global permit and then wait for a source permit. That worker is already consuming the shared capacity and defeats the bulkhead.
- Keep rate/pause rules separate. Admission caps simultaneous work; target/account rules control starts and pauses. Backpressure remains necessary when arrivals exceed permitted service.
- For cancellation, stop admitting new work, run the task’s real cleanup in a
finally-style path, and release both global and source permits only after cleanup completes. A retry returns through the same global and source quotas; it is not a new protected class.
This toy model completes jobs non-preemptively and has no sockets, so it does not test actual cancellation cleanup. In production, record cleanup start/end, released permit counts, and any orphaned work separately before treating the method as accepted.
Acceptance record before changing allocation
| Case | Pass evidence | Hold or rollback signal |
|---|---|---|
| Normal mix | All scheduled jobs accounted for; per-source on-time rate and drain are recorded. | Missing ledger rows or a changed validator. |
| One slow source | Independent critical work meets its stated deadline without exceeding the global ceiling. | Protection exists only on paper, or a waiting worker holds a global slot. |
| All sources slow | Queue age, deadlines, and stop/backpressure rules are visible per source. | Partition is presented as extra capacity. |
| One source idle | Idle reservation cost is measured; borrowing policy is explicit if approved. | Drain cost is hidden by aggregate success. |
| Cancellation and retry | Cleanup evidence precedes permit release; retries re-enter the same quota. | Early release, leaked permits, or a retry bypasses limits. |
| Overload | Old work is expired or held by an explicit deadline/queue-age rule. | Late, useless work is silently treated as delivery. |
Use the workload-sizing guide to distinguish global in-flight caps from rate and transfer terms; the retry-budget guide for a bounded repeat decision; the timeout benchmark guide for on-time rather than completed-only reporting; and shared-dependencies guidance when the apparent bottleneck might be outside the client.
Next step: after client isolation and authorized rate controls are measured, a workload that still needs particular public exit geography or session behavior can compare its declared requirements with residential proxy information. Bring redacted per-source queue age, in-flight counts, deadline results, required region, and session semantics to contact. This is a fit discussion, not a performance or availability promise.
Sources checked November 30, 2026: Microsoft’s Bulkhead pattern explains partitioning shared client resources and its utilization/complexity trade-off. AWS’s Avoiding insurmountable queue backlogs discusses queue age, prioritization, and work that becomes late or useless. They inform the design vocabulary only; all numbers and analysis above are original synthetic examples.