IOSOR Learn
Queue Shard Rebalancing and Hotspot Audit for Throughput
Audit per-shard queue distribution to find throughput hotspots, decide when to rebalance shards or renegotiate route capacity, and verify failover readiness.
Lead Telecom & Routing Architect · Lausanne, CH
Per-shard queue skew, not aggregate volume, usually explains throughput hotspots: compare each shard's enqueue rate, drain rate, and DLR receipt lag before deciding to rebalance shards or renegotiate route capacity.
Map shard-level queue distribution before touching capacity
Start with a per-shard snapshot over the same window: enqueue rate, drain rate, in-flight depth, and oldest-message age. A shard is a hotspot when its oldest-message age grows while sibling shards drain flat. Record the shard key (sender ID, corridor, template class) so you can tell whether skew comes from routing policy or from traffic shape.
Separate true hotspots from carrier-side backpressure
A hotspot is internal when drain rate falls while carrier acceptance stays stable and DLR receipts arrive on time. It is carrier-side when acceptance drops, retry queues grow, and DLR lag rises across all shards at once. Check E.164 normalization errors and sender/template gates before blaming shards: rejected submissions inflate retry depth and look like skew.
Set rebalance triggers with explicit thresholds
Define numeric triggers: oldest-message age above a fixed ceiling, drain-rate ratio between hottest and coldest shard above a set factor, or sustained in-flight depth above a per-shard cap for a defined interval. Rebalance only when the trigger persists across two consecutive windows, so a single burst does not cause churn.
Verify failover readiness after every rebalance
After moving shard keys, confirm that retry queues drain, webhook consumers keep pace, and DLR receipts still map to the correct message IDs. Run a controlled failover of one shard and measure recovery time against your stated target. If failover depends on a single consumer group, the rebalance did not improve resilience. Keep a rollback path: the previous shard map must be restorable within one window.
Decide between rebalancing and renegotiating route capacity
Rebalance when skew is internal and total capacity is sufficient. Renegotiate route capacity when every shard is near its ceiling and drain rate is capped by carrier acceptance. Use throughput allocation strategy across multi-tenant queues to check whether tenant quotas are creating the skew, and bottleneck analysis for high-volume queues to confirm the true ceiling.
Start with IOSOR
Run this checklist before any capacity decision: export per-shard enqueue, drain, in-flight, and oldest-age metrics for two windows; flag shards where oldest age grows while siblings are flat; confirm DLR receipt lag and webhook latency per shard; test one controlled shard failover and record recovery time; and list rebalance triggers with numeric thresholds.
Related: PAYG hold before first debit · Wallet stop-lines before production.
IOSOR takeaway
Start with a per-shard snapshot over the same window: enqueue rate, drain rate, in-flight depth, and oldest-message age. Use throughput allocation strategy across multi-tenant queues to check whether tenant quotas are creating the skew, and bottleneck analysis for high-volume queues to confirm the true ceiling (/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.












