Architecture diagrams make incremental replacement look simple. Data ownership, synchronization, reconciliation, and rollback are where mission-critical migrations usually become difficult.
The strangler pattern is often drawn as a neat picture: requests hit a routing layer, a few capabilities move to new services, and the monolith gradually disappears. The difficult part is usually missing from the diagram. During the months or years when old and new components coexist, they still need to agree about the business state.
That creates the central data question of mission-critical modernization: how can a company change ownership without creating conflicting sources of truth, lost updates, duplicate side effects, or a cutover that cannot be reversed? The answer is not one universal synchronization technology. It is a set of explicit decisions about ownership, replication, comparison, and retirement.
For the broader architecture and migration patterns behind this approach, see this guide to strangler-pattern modernization for mission-critical legacy systems.
Figure 1. During coexistence, synchronization moves data between old and new paths, while reconciliation determines whether the business outcomes actually agree.
Why data becomes the limiting factor in incremental modernization
Code can be routed capability by capability. Data is harder because years of behavior may be encoded in shared schemas, foreign keys, stored procedures, scheduled jobs, replicated reporting stores, and downstream processes. A team can extract a service quickly and still discover that the monolith remains the true owner because every important record lives in the same database.
This is why a successful strangler program needs a data migration model from the start. The team must know which system can write, which system can read, how changes cross the boundary, what happens when messages arrive late, and how the two worlds are compared while both remain active.
Start by naming the source of truth for every stage
Ambiguity is more dangerous than temporary duplication. During migration, it may be acceptable for data to exist in two places. What is not acceptable is uncertainty about which copy is authoritative for a decision.
Migration stage
Authoritative owner
Purpose of the other copy
Before extraction
Legacy system
Baseline only; new store may not exist yet
Shadow / parallel run
Usually legacy
New path receives mirrored data for validation
Controlled cutover
Depends on cohort or capability
Old copy may remain for rollback or comparison
After stabilization
New capability
Legacy copy becomes read-only, archival, or removable
The owner may change by customer, region, or transaction class during a gradual rollout. That is fine if the routing rule is explicit and observable. Problems begin when both systems can make authoritative changes to the same business state without a deterministic conflict model.
Four data transition patterns - and the trade-offs they create
1. Read from legacy, write to legacy
This is the simplest early stage. The new component may calculate or expose behavior while the monolith still owns persistence. It minimizes data migration risk but also limits independence. It is useful as a temporary bridge, not as the end state.
2. Replicate changes to a new store
Change-data capture, events, scheduled replication, or another feed can populate a new data model while the legacy system remains authoritative. This supports shadow reads and parallel validation. The challenge is lag, ordering, replay, schema translation, and knowing whether every change was captured.
3. Dual write during transition
Both stores receive writes from one operation. This can shorten the path to independent ownership, but it creates partial-failure questions: what happens when one write succeeds and the other fails? Distributed transactions are rarely the best answer at scale, so teams often need idempotency, retries, outbox patterns, or compensation. A dual-write phase should have a defined end date.
4. New system owns writes; legacy consumes the result
This is the direction of travel near cutover. The new capability becomes authoritative and publishes changes the legacy world still needs. At this point, rollback is more complex because the old system may no longer have the full sequence of authoritative decisions unless reverse synchronization has been designed deliberately.
Synchronization is not the same as reconciliation
A replication pipeline can be healthy while the business state is wrong. Synchronization answers whether data moved. Reconciliation answers whether the old and new systems agree about what the business means.
For example, two systems may contain the same order record and still disagree on tax, available inventory, eligibility, settlement status, or a downstream event. The comparison therefore needs to include business outcomes rather than only row counts or message delivery metrics.
- Compare totals and balances at a business level, not only individual records.
- Classify mismatches as expected-by-design, timing-related, or defects.
- Record the exact input, legacy output, new output, and resolution for material differences.
- Use sampled deep comparison for high-volume flows when full comparison is too expensive.
- Give domain owners visibility into reconciliation because not every difference is a technical bug.
How to make parallel run safe when writes have side effects
Mirroring a read is straightforward. Mirroring a write can charge a card twice, send duplicate notifications, reserve inventory twice, or create two external records. A parallel-run design therefore needs a distinction between computation and side effects.
One common approach is to let the shadow path calculate the intended result without committing external effects, then compare that result with the authoritative path. Another is to make side effects idempotent and tag shadow executions so downstream consumers can ignore them. In some domains, the safest option is to replay production inputs later rather than mirror them synchronously.
Data contracts matter more than database schemas
A strangler boundary should protect the new architecture from legacy data structures. If the new component simply exposes the old schema through a new API, the organization has moved code without removing the dependency. An anti-corruption layer or translation model can separate the legacy representation from the new domain contract.
That translation has cost, but it also creates leverage. The new capability can evolve its model without forcing every consumer to understand legacy fields, null conventions, identifiers, and status codes. Over time, the compatibility layer shrinks as more consumers adopt the new contract.
Rollback requires a data plan, not only a routing switch
Teams often design rollback as if moving traffic back to the monolith is enough. If the new system has been authoritative for writes, the legacy path may not know about the state created during that period. A true rollback plan must explain how that state returns, whether reverse synchronization exists, whether certain transactions are irreversible, and whether the organization can tolerate a read-only fallback instead of full write rollback.
This is why rollback becomes harder as authority moves. The safest cutover points are the ones where the team has already rehearsed the data consequences, not only the infrastructure commands.
A production lesson: continuity is an architecture requirement
Mission-critical modernization is most credible when the replacement is proven under live constraints. In a public Zoolatech engagement for a global fashion retailer, a critical legacy Kafka service was replaced with no downtime, while event processing increased about seven-fold and cloud costs fell by roughly four times. The practical lesson is that continuity, observability, and rollback are not deployment polish; they are part of the architecture of the migration itself.
The critical service modernization case shows how a production workload can be replaced while the system stays available.
What to remove after the cutover
A migration is not complete when the new database is serving traffic. The temporary machinery has to disappear as well. Otherwise the organization inherits a permanent tax: duplicated storage, synchronization jobs, replay tooling, compatibility mappings, and dashboards that only exist because two systems once needed to coexist.
- Stop legacy writes once the new owner is stable.
- Remove reverse or dual synchronization that is no longer needed.
- Archive data only when retention, audit, and compliance requirements are clear.
- Delete obsolete adapters and schema mappings after every dependent consumer has moved.
- Retire reconciliation jobs once there is only one authoritative path - and preserve the evidence needed for audit.
A better way to measure progress
Teams often count migrated services. A more useful measure is how many legacy ownership relationships have disappeared. Can the new capability deploy without the old database? Does it own its data? Can it publish a stable contract? Have the temporary sync paths been removed? Is the legacy module actually smaller?
Those questions reveal whether the strangler pattern is reducing legacy risk or merely adding a second architecture beside it.
Practical Questions
Should both old and new systems write during a strangler migration?
Sometimes, but dual writes should be treated as a temporary transition state with explicit failure handling and a planned end. The safest long-term model has one clear owner for each piece of business state.
Is change-data capture enough for a parallel run?
No. CDC can move changes, but it does not prove that the new system makes the same business decisions. Reconciliation should compare outcomes, not only successful data delivery.
What makes rollback difficult after data ownership moves?
The old system may not contain the authoritative state created by the new path. Rollback therefore needs a plan for state synchronization, irreversible side effects, and the exact point at which the old path can still take over safely.
Final takeaway
The strangler pattern works when the organization can move ownership, not just traffic. That requires explicit sources of truth, controlled synchronization, business-level reconciliation, and a rollback model that accounts for data created after authority shifts. When those controls are designed from the beginning, old and new systems can coexist long enough to prove the replacement - and then the temporary bridges can be removed instead of becoming the next generation of legacy.