IOSOR Learn
Queue Shard Rebalance Cutover: Verify Throughput Continuity
Verify in-flight SMS, DLR receipts, and webhook callbacks survive a shard rebalance cutover without silent loss or duplicate delivery before committing the window.
Lead Telecom & Routing Architect · Lausanne, CH
A shard rebalance cutover is safe only when you prove in-flight SMS, DLR receipts, and webhook callbacks cross the boundary without silent loss or duplicate delivery. Treat the cutover as a verified state transition, not a config flip: freeze, drain, snapshot, replay, and reconcile before you release the window.
Define the cutover invariant before touching shards
Write the invariant as a testable statement: every accepted SMS has exactly one terminal DLR receipt, every webhook callback is delivered at least once with a stable idempotency key, and no message is stranded in a shard that no worker owns. Map each queue and tenant to a source shard, a target shard, and an owner epoch.
Drain and freeze with measurable gates
Stop accepting new enqueues per tenant before the cutover, then drain to a threshold you can observe: pending depth, oldest message age, and in-flight lease count. Set a hard gate such as pending depth under 50 and oldest age under 30 seconds per shard, and hold the cutover if any shard misses it. Freeze producer writes with a token that expires, so a stalled operator cannot leave the queue half-open.
Replay in-flight messages and reconcile DLR receipts
After the target shard takes ownership, replay messages whose leases were active at freeze. Compare the replayed set against the snapshot by message id and idempotency key, not by count alone. For DLR receipts, reconcile terminal states: every message accepted before freeze must reach a terminal receipt after cutover, and no message may produce two terminal receipts.
Verify webhook callbacks and sender template gates
Webhook continuity is where cutovers fail quietly. Confirm callback URLs, signing secrets, and retry schedules survive the shard move, and that the target workers use the same sender and template gates as the source. Run a synthetic SMS through the full path after cutover and assert the DLR receipt and webhook callback arrive within your latency budget.
Compare partner route failover and DLR guarantees
Before committing the rebalance window, compare partner route failover behavior and DLR consistency guarantees for your channel and corridor. Use the Decision Brief to check how each route handles failover during a cutover, whether DLR receipts are terminal and idempotent, and what webhook retry horizon applies. This comparison belongs in the cutover plan, not after an incident.
Start with IOSOR
Run this as a partner-comparison and operational checklist before you commit the window. First, open the Decision Brief partner comparison and compare verified partner routes for your channel and corridor on failover behavior, DLR terminality, and webhook retry horizon. Second, write the cutover invariant and the drain gates as queries you can run.
Related: PAYG hold before first debit · Wallet stop-lines before production.
IOSOR takeaway
Write the invariant as a testable statement: every accepted SMS has exactly one terminal DLR receipt, every webhook callback is delivered at least once with a stable idempotency key, and no message is stranded in a shard that no worker owns. This comparison belongs in the cutover plan, not after an incident (/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.












