Stripe’s online migrations: prove correctness before moving the source of truth
A copied database can still produce the wrong business result. Stripe’s historical subscription migration offers a useful starting point for deciding when a new data path has earned production traffic—and when rollback stops being straightforward.
A Historical Case With a Current Delivery Question
Stripe’s February 2, 2017 engineering account describes moving subscription data from customer records into a separate table. Its sequence was dual writing, moving reads, moving writes, and retiring the old representation. Stripe also describes incremental rollout, backfilling, and comparing read results with GitHub’s Scientist library.
This is a historical engineering case, not a description of Stripe’s complete November 2026 architecture. The delivery controls below are 3B’s recommendations for teams modernizing a production application.
A migration plan needs to answer a business question before it answers a storage question: which decisions must remain correct throughout the transition? For a subscription platform, that might include whether service is active, which account owns it, and which renewal terms apply. Write those invariants into the acceptance criteria. A matching object count does not establish that the application still makes the right decision.
Give Every Phase a Declared Write Authority
In Stripe’s account, the write transition included reversing the direction of copying: new data became the initial write target while the old representation was maintained. Old data was removed only after dependencies on it had been eliminated.
For a comparable enterprise migration, 3B recommends recording the authoritative store for every phase and specifying what happens when only one write succeeds. A request can time out after a durable change. A second store can be unavailable after the first accepts an update. Treating either situation as an ordinary retry can conceal divergence unless the repair procedure understands which operation already happened.
Define an operation identifier, a durable record of incomplete work, and a reconciliation owner. Decide whether the application can accept a temporarily stale projection or must fail the operation. Where the stores cannot participate in one transaction, the design must explicitly handle partial completion. The appropriate mechanism depends on the workload; dual writing alone is not a consistency guarantee.
Test the failure between writes in a controlled environment. The expected result should include the response to the caller, the durable state in both stores, and the evidence an operator uses to repair it.
Compare Decisions Without Repeating Side Effects
Scientist’s official documentation describes a control path and a candidate path, with the control result returned to the caller while experimental behavior is measured and compared. It also supports custom comparison logic and configurable experiment reporting.
3B recommends using that pattern for reads whose business meaning can be compared safely. For an illustrative entitlement migration, compare account identity, permitted features, effective dates, and suspension state. Normalize only differences that the business has explicitly accepted. Sorting two unordered result sets may be legitimate; ignoring a currency or tenant mismatch is not.
Keep the candidate path free of business side effects. A second calculation must not send another invoice, renew another contract, or publish a duplicate notification. Check hidden effects such as audit writes, cache changes, and downstream API calls before enabling the comparison.
Budget the additional load. Set a sampling rate and stop conditions for latency, connection pressure, and errors. Report mismatches by meaningful cohorts, including older accounts and unusual lifecycle states. A healthy aggregate can hide the exact customer group the migration was meant to support.
Backfill Against a Moving Dataset
Stripe reports using offline database snapshots to identify records for migration, then checking again for missing subscriptions after copying. The live application continued to change while the transition proceeded.
For a proposed implementation, 3B recommends treating the backfill as a resumable process with explicit concurrency rules. An older copied value must not overwrite a newer live update. A deleted record must not reappear because a delayed worker copied it from an earlier snapshot. Document how versions, conditional writes, or an ordered change stream resolve those races.
Checkpoint progress and record rejected or failed records separately from completed records. Throttle on production health, then rehearse interruption and restart. Verify coverage and semantic correctness independently: every expected entity should exist, and its business fields should satisfy the approved invariants.
Include a quiet or rarely used account in the exercise. A migration that relies on ordinary customer activity to repair missing data can appear healthy while leaving dormant records incomplete.
Make Rollback a Data Decision
3B recommends distinguishing a reversible read switch from a reversal after new writes have changed the data model. Restoring an earlier application version does not automatically restore a usable earlier representation. New features may produce states the old model cannot express.
Before each expansion, record whether backward synchronization remains active, which new states can be translated back, and which conditions require pausing writes or repairing data. Agree on the decision owner and the maximum acceptable reconciliation delay. Keep the old path available only as long as its behavior and data remain trustworthy.
The first deliverable should be one bounded workflow migrated through a rehearsed failure and recovery exercise. The platform lead owns the technical evidence; the product or operations owner approves the business invariants. Broader rollout follows when that evidence supports it.
- Interrupt the second write and confirm that reconciliation finds and repairs the incomplete operation.
- Race a backfill against an update and a deletion; verify that the latest valid state survives.
- Introduce a semantic mismatch into a read comparison and confirm that the release gate catches it.
- Roll back after a new-model write; verify the actual business workflow against the restored path.
- Approve retirement separately, after verifying consumers, repair procedures, and data-retention requirements.
EXECUTIVE TAKEAWAYAdvance a migration when the next phase has earned authority through evidence: correct business decisions, resolved partial writes, a resumable backfill, and a credible recovery path. Copy completion is one milestone; production acceptance requires more.
Stripe Engineering · Online migrations at scale · February 2, 2017 ↗
GitHub · Scientist · Official repository and documentation ↗
Accessed November 18, 2026.
Plan a Migration With Reviewable Acceptance Criteria
3B Global Enterprise Advisors supports cloud-native modernization, data engineering, platform reliability, and managed operations. Start with one production workflow, its business invariants, and a migration plan with clear ownership and recovery criteria.
Discuss your initiative →