IOSOR Learn
Provider Failover Switchover: Auditing State Consistency Mid-Flight
How to audit message state, retry counters and billing locks when a route fails over mid-flight, with DLR continuity checks and partner comparison via the Decision Brief.
Lead Telecom & Routing Architect · Lausanne, CH
A mid-flight failover is safe only when the message state, retry counter and billing lock travel with the message. Audit the switch by replaying the same send ID across both routes and checking that every receipt reconciles.
Map the state that must survive the switch
Before touching routing, list the fields your stack holds per message: internal send ID, E.164 destination, submitted template or sender ID, submitted timestamp, retry attempt count, billing lock or reservation record, and last known DLR state. On failover, each of these must either persist unchanged or move through a documented transition.
Verify DLR continuity across the handover
The hardest failure is a split receipt: route A accepts the message, route B delivers it, and the final state arrives on only one callback path. Run a switchover drill with a controlled batch: force a route change mid-flight, then compare the full DLR set against your sent log. Check three things. First, that no send ends without a terminal receipt, meaning neither silent expiry nor a stranded intermediate state.
Audit retry counters and billing locks
Double billing and duplicate delivery usually share one root: the retry counter and the billing reservation are stored in different places and failover touches only one of them. For each candidate route, confirm whether the reservation is released, transferred or re-created on switch, and whether a retry after switch reuses the original reservation or opens a new one.
Test the switch paths you will actually hit
Failover is not one event but several: submit-time refusal, timeout after submit, callback silence, and degradation that only shows in latency. Drill each separately. For submit-time refusal, the expected behaviour is a clean re-submit with the same idempotency key and an unchanged counter.
Keep receipts and reconciliation on one timeline
Switchover audit output should be a single timeline per message: submit, route decision, any retry, callback receipt, terminal state, billing close. Align these on one clock and check ordering. A callback that precedes its own submit timestamp means clock skew between routes; a billing close that precedes the terminal receipt means reservation logic fired early.
Start with IOSOR
Compare partner routes on documented failover state handling before you commit volume. Double billing and duplicate delivery usually share one root: the retry counter and the billing reservation are stored in different places and failover touches only one of them. For each candidate route, confirm whether the reservation is released, transferred or re-created on switch, and whether a retry after switch reuses the original reservation or opens a new one (/tools/brief).
PAYG hold before first debit · Wallet stop-lines before production.
IOSOR takeaway
Before touching routing, list the fields your stack holds per message: internal send ID, E.164 destination, submitted template or sender ID, submitted timestamp, retry attempt count, billing lock or reservation record, and last known DLR state. A callback that precedes its own submit timestamp means clock skew between routes; a billing close that precedes the terminal receipt means reservation logic fired early (/tools/brief · DLR / webhook).
Was this guide helpful?
Related guides
- Partner Failover Cutover Verification Before Billing Lock-In
Verify DLR receipts, webhook latency, sender/template gates, and cost-per-delivered before locking billing to a new failover route. Compare partners via /tools/brief.
- Partner Failover Route Cost Parity Audit for Message Lifecycle
Audit failover routes for cost-per-delivered parity and DLR integrity before committing volume; compare verified partner routes via /tools/brief.
- Building a Partner Failover Matrix for Message Final-State Confirmation
Design a failover matrix that prevents double-billing and missed disputes by ranking backup routes on DLR receipt quality, webhook latency, and dispute evidence.












