IOSOR Learn
Queue Depth vs Carrier Ack Lag: Correlation Audit for Throughput
Audit whether rising queue depth tracks carrier ack lag or internal drain inefficiency, then compare verified partner routes via /tools/brief before renegotiating capacity.
Lead Telecom & Routing Architect · Lausanne, CH
Rising queue depth is caused by carrier ack lag only when DLR receipt and webhook latency move in lockstep with the backlog; if drain rate stays flat while ack lag is stable, the fault is internal pipeline inefficiency, not route capacity.
Map the two signals before you blame the route
Pull a 14-day window of queue depth sampled every 5 minutes and overlay it with two carrier-side series: DLR receipt timestamps and webhook delivery latency per message. Normalize both to the same clock and compute a rolling Pearson correlation at 1-hour granularity. A correlation above 0.7 with a lag of 2 to 10 minutes means the queue is reacting to carrier acknowledgment, not to your own workers.
Separate ack lag from drain inefficiency with a controlled probe
Run a probe batch of 200 messages through one route with retries disabled and template gates bypassed for the probe only. Measure three intervals: submit-to-first-ack, first-ack-to-DLR, and DLR-to-webhook. If submit-to-first-ack exceeds your SLO while DLR and webhook stay inside bounds, the carrier ack path is the bottleneck.
Quantify the throughput ceiling each hypothesis implies
For the ack-lag hypothesis, compute the maximum sustainable submit rate as concurrency divided by mean ack latency; if that ceiling sits below your observed ingress, the queue will grow regardless of internal tuning. For the drain hypothesis, compute effective drain rate as completed messages per minute minus retry re-entries; a drain rate below ingress with stable ack latency confirms internal inefficiency.
Validate with DLR receipt and webhook latency gates
Before concluding, verify that DLR receipts are not being dropped or delayed by your own webhook endpoint. Check webhook 5xx rates, retry counts, and p95 response time during the correlation window. A slow webhook inflates apparent ack lag and can falsely implicate the carrier. Also confirm sender and template gates are not silently throttling submission, which would depress ingress and mask a real drain problem.
Decide: renegotiate capacity or fix the pipeline
If the ack-lag hypothesis wins, the decision is route capacity: renegotiate concurrency, throughput ceiling, or corridor mix with verified partners whose measured ack latency fits your SLO. If the drain hypothesis wins, the decision is internal: raise worker concurrency, cap retry re-entries, and tighten sender/template gate logic before touching route contracts.
Start with IOSOR
Run the partner-comparison checklist for this audit: (1) export the 14-day queue depth and ack-lag series with correlation coefficient and lag offset; (2) attach probe intervals for submit-to-first-ack, DLR, and webhook; (3) state the computed throughput ceiling for each hypothesis; (4) confirm webhook 5xx and sender/template gate status are clean; (5) open compare verified partner routes to match.
Related: PAYG hold before first debit · Wallet stop-lines before production.
IOSOR takeaway
Pull a 14-day window of queue depth sampled every 5 minutes and overlay it with two carrier-side series: DLR receipt timestamps and webhook delivery latency per message. If the drain hypothesis wins, the decision is internal: raise worker concurrency, cap retry re-entries, and tighten sender/template gate logic before touching route contracts (/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.












