IOSOR Learn
Verify PAYG Balance Exhaustion Backpressure Before Volume Spikes
How to prove a PAYG route backpressures cleanly when balance drains mid-burst — and which partner routes expose drain telemetry early enough to throttle.
Lead Telecom & Routing Architect · Lausanne, CH
Prove it with a staged drain test: watch the balance ledger, queue depth and DLR arrival rate on one clock, and confirm the gate closes before send attempts exceed budget. If queue depth keeps climbing after balance hits zero, you have silent drops, not backpressure.
Define the drain invariant before you generate traffic
Write the invariant down as a single testable sentence: at any send attempt, reserved balance plus in-flight cost must not exceed the funded balance, and once balance reaches zero the queue must stop admitting new OTP and SMS jobs within one dispatch tick. Verification criteria are concrete — the balance ledger time series, the admission counter, and the DLR receipt stream must all agree at the same second. Record three numbers per minute during the test: attempts dispatched, attempts admitted, and DLRs received.
Distinguish clean backpressure from double-send and silent drop
Three failure signatures look alike in a dashboard and differ only in the DLR stream. Silent drop: admission stops, dispatched stops, and no DLR ever arrives for the rejected jobs — check that rejection is logged with a reason code, not just vanished. Double-send: a job is dispatched, balance rejects it, the retry path re-admits an identical job with a new message id, and two DLRs land for one handset — count distinct message ids per destination and diff against admission count.
Read balance and drain telemetry on the same clock
Telemetry depth decides whether you can throttle in time. Require four signals with timestamps: remaining balance, reserved in-flight amount, rejected-attempt count, and the exhaustion event timestamp itself. Compare the exhaustion timestamp to the first rejection timestamp — the gap is your detection lag, and your throttle must complete inside that lag or volume keeps arriving at a gate that already closed.
Gate retries so exhaustion does not become a retry storm
When balance drains mid-burst, the retry policy determines whether you recover or amplify. Freeze automatic retries on the exhaustion event, hold the queue, and drain it only after a funding change is confirmed in the ledger. Verify that retry backoff does not bypass the admission gate — a retry path that skips the balance check will double-send the moment funds appear.
Compare partner routes on drain behaviour, not on headline rate
Route desks differ in whether they expose reserved versus available balance separately, how fast the exhaustion webhook fires, and whether rejection carries a reason code you can gate on. Pull the comparison on verified partner routes for your channel and corridor and score each on detection lag, ledger granularity, rejection reason depth, and resume semantics.
Start with IOSOR
Run the comparison first, then the drain test. Open the Decision Brief partner comparison to score candidate routes on balance telemetry depth, exhaustion detection lag, rejection reason codes and resume behaviour for your corridor, and confirm which gate you can actually verify.
Related: PAYG hold before first debit · Wallet stop-lines before production.
IOSOR takeaway
Write the invariant down as a single testable sentence: at any send attempt, reserved balance plus in-flight cost must not exceed the funded balance, and once balance reaches zero the queue must stop admitting new OTP and SMS jobs within one dispatch tick. Pull the comparison on verified partner routes for your channel and corridor and score each on detection lag, ledger granularity, rejection reason depth, and resume semantics (/tools/brief · DLR / webhook).
Was this guide helpful?
Related guides
- Prevent Priority Class Starvation in Multi-Tier Throughput Queues
Verify high-priority message classes cannot starve lower tiers under sustained load, and decide when to compare partner routes with explicit priority-class scheduling guarantees.
- Multi-Tenant Throughput Fair-Share Enforcement and Verification
How to prove a noisy tenant can't starve other queues of carrier send capacity, and make per-tenant fair-share weights hold through spikes and quota replenishment.
- Audit Queue Shard Rebalancing Lag Before Scaling Throughput
Verify queue shard rebalancing keeps pace with tenant growth, exposes hidden lag and hot-shard contention, and gates throughput scaling on measured DLR and webhook evidence.












