IOSOR Learn

Dual-write window risk during cutover

Two webhooks for one message is a debit and DLR hazard. Cap the dual-write window, dedupe money events, and exit with one ledger owner.

Oleksandr (Alex) Petukhov — IOSOR Telecom Expert
✓ Verified by IOSOR ExpertOleksandr (Alex) Petukhov

Lead Telecom & Routing Architect · Lausanne, CH

IOSOR Expert · Q&A

A dual-write window means the same outbound message can hit two webhook endpoints — old and new — while cutover is unfinished. That is not a safety net; it is a debit and DLR hazard. Finance sees twin rows; ops sees twin “delivered” clocks; buyers see a ledger that no longer matches the send they remember.

IOSOR cutovers treat dual-write as a timed exception with an exit owner. If both endpoints stay Live without an idempotency story, holds and invoices drift for the whole invoice week. Document the kill criteria in writing before the first parallel debit so nobody extends the window by chat.

Name the dual-write window before traffic splits

Write the start time, end time, and exit owner before any second endpoint receives production events. Publish the window in the cut ticket so developers do not “extend quietly” when DLR looks nervous. An unnamed window becomes a permanent fork.

List which event types are allowed to dual-write (DLR only, or send+DLR). Forbidden pairs belong in the ticket title, not in a hallway chat after the first double debit.

Deduplicate money events while two endpoints are Live

Map every webhook payload to an idempotency key finance can cite. Reject or merge duplicate delivered/failed events so the wallet opens one hold and closes one debit per message id. Retries are allowed; double money is not.

If the old endpoint and the new endpoint disagree on final status, freeze the message id and export both payloads. Do not let invoice week reconcile “both” as two billable rows.

Cap the window with a hard exit clock

Set a maximum dual-write duration and a kill switch that stops the old endpoint when the clock hits zero. Extend only with a written change and a new clock — never by leaving both URLs in the secret store “until next sprint”.

Pair the clock with a second-endpoint handover checklist so ops knows which URL becomes sole owner. A soft “we will watch it” is not an exit.

⚡ IOSOR Expert · Q&A · Verified partners (×44)

Prove one ledger owner after the cut

After the old endpoint stops, export hold-versus-debit for the dual-write hours and the first quiet hour after. Confirm one wallet owner per message id. Only then mark cutover complete in the ticket.

If twin rows remain, reopen the freeze list before raising pilot volume. Dual-write residue is an ops defect, not a pricing debate.

Related ops paths

An unnamed window becomes a permanent fork. List which event types are allowed to dual-write (DLR only, or send+DLR).

Webhook second-endpoint handover · API idempotency, retries, and money · Wallet invoice week: hold vs debit.

Start with IOSOR

Name the dual-write window, the kill clock, and the single ledger owner in writing before the first parallel debit. Deduplicate money events on both endpoints until the cut, then prove one owner owns every hold and debit after exit.

IOSOR takeaway

Two Live endpoints for one message create double-debit and conflicting DLR risk. Cap the dual-write window with a hard exit clock and one named owner — chat extensions are how money doubles.

Do not leave both endpoints Live past the kill time. Do export the dedupe proof and the post-cut ledger owner before finance signs the cutover.

Was this guide helpful?

Related guides

VERIFIED BY IOSOR EXPERT · B2B ROUTING, SLA & PROVIDER Q&A

IOSOR Expert — Verified Q&A & B2B Messaging Decisions

Every Q&A decision below is audited by the IOSOR Telecom Architecture Expert against live 90-day uptime telemetry, carrier compliance rules (10DLC, DLT, GDPR), and real partner TCO.

All Q&A Triggers
#01 · Compliance & Sender ID📖 Knowledge hub · US A2P / 10DLC

US A2P / 10DLC

“Why do US 10DLC TCR campaigns get rejected and which partner handles fast onboarding?”

✓ Verified by IOSOR Expert

10DLC brand and campaign programs for US A2P traffic — not general privacy compliance.

All Q&A Triggers
#02 · OTP & verification📖 Knowledge hub · India DLT

India DLT

“How do engineering teams prevent India TRAI DLT template scrubbing drops on OTPs?”

✓ Verified by IOSOR Expert

DLT and PE-TM registration for India A2P — not an India corridor coverage guide.

All Q&A Triggers
#03 · OTP & verification📖 Knowledge hub · Verify / OTP

Verify / OTP

“How do we eliminate OTP p95 timeout spikes and trigger a 20–30s multi-rail fallback?”

✓ Verified by IOSOR Expert

Login codes without chaos: abuse, latency, and cost control.

All Q&A Triggers
#04 · Transactional email📖 Knowledge hub · Email

Email

“Why do password reset and 2FA emails land in Spam when sharing bulk marketing IPs?”

✓ Verified by IOSOR Expert

Transactional email alongside SMS, voice, and WhatsApp in one routing architecture.

All Q&A Triggers
#06 · WhatsApp Business📖 Knowledge hub · WhatsApp & RCS

WhatsApp & RCS

“How do Meta per-conversation fees and template pauses impact WhatsApp Business TCO?”

✓ Verified by IOSOR Expert

Rich channels when profiles and templates are ready: honest setup.

All Q&A Triggers
#08 · Failover & backup routing📖 Knowledge hub · Failover & rails

Failover & rails

“How do we keep a second standby provider warm for failover at $0/month idle cost?”

✓ Verified by IOSOR Expert

Ordered backup paths when a primary rail fails - distinct from DLR status truth.

All Q&A Triggers