Why Forward Sync Is the Easy Half: What Engineers Learn the Hard Way About Two-Way Data Flow Between Legacy and Modern Platforms

The direction nobody writes about is the one that breaks the architecture.

Shahid Vaseem has spent the last several years inside a kind of project that vendor literature tends to describe in a single confident paragraph and that engineers live with for years. A core system, old and load-bearing, has to be replaced by a modern one. The replacement cannot happen in a weekend. Dozens of applications feed the old system or draw from it, and the business cannot stop while any of that is rearranged. So the two systems run in parallel, and something has to keep them agreeing with each other.

The team Vaseem worked with gave that something a name. They called it Co-Existence, and he helped build it from the ground up.

On paper, the brief sounds like a sync problem. In practice, he says, it is two problems, and only one of them is the one people plan for.

The forward direction is the familiar half. Every data change on the legacy system is captured and emitted as a discrete message, and a publish-subscribe layer carries those messages out to whichever listeners need them. The modern platform is one of the subscribers. Change data capture of this kind is well understood, and once it is in place the modern system can be kept current without a nightly batch window. By his account, the framework processes forty to fifty thousand update transactions a day in that direction alone.

That part, he says, was the easy half.

The harder half announced itself as soon as applications began moving. Once a source application was repointed at the modern platform and started writing its updates there, the legacy system, still live, still consulted by everything that had not yet migrated, began to drift. Customer records that had agreed with each other in the morning no longer agreed by the afternoon. The forward sync had no answer for that, because the forward sync had been built on an assumption that was now wrong: that the legacy system was the only place writes originated.

“We realized that, as applications start getting onboarded to the modern system and they start sending in their updates, the legacy system will also go out of sync with the modern system,” Vaseem says. “As a result we had to quickly build a backward sync also.”

Because the framework had been designed well in the forward direction, the backward direction could borrow its shape. Change capture on the modern side, discrete messages, pub-sub out to listeners, the legacy platform as one of the subscribers. The symmetry was a gift from the earlier work. The complications were not.

Vaseem is direct about where those complications live. A bidirectional synchronization layer, he says, raises a set of questions a one-way pipe never has to answer. Which system is the system of record for a given field at a given moment. What happens when both sides change the same record inside the same window. How do you keep a message the legacy side just emitted from being echoed back to it by the modern side a second later, and then forward again, forever. How do you tell a duplicate from a legitimate repeat. How do you reconcile what the two systems believe when, inevitably, they disagree.

None of those questions have clever one-line answers. They have architectural answers: explicit ownership rules per data domain, conflict resolution policies that the business has actually signed off on, loop suppression built into the message envelope, observability that lets an engineer see a drift before a customer does, and reconciliation jobs that run on a schedule and tell the truth about what they find.

The payoff is the thing the vendor literature is right about, even if it skips the hard part. With Co-Existence in place, applications can move one at a time, at a pace the teams owning them can sustain, and the business keeps running while they do. A bidirectional sync layer, Vaseem says, is best thought of as a transitional architecture, not a destination. It exists to let the organization retire the legacy platform on a schedule it can control, with clearly defined system-of-record boundaries and an explicit plan for turning the bridge off when it is no longer carrying anything.

He is careful about how he frames success. The useful measure, he says, is not whether the two systems stay in step. That is table stakes. The useful measure is whether the teams responsible for the applications feeding those systems can migrate at their own pace without disrupting the business, and whether the legacy footprint gets smaller every quarter as a result.

What he would tell an engineer about to start one of these programs is the thing his own team learned the second time around. Design the forward sync as though the backward sync is coming, because it is. The organization will not tolerate a modern platform that only reads. The moment it starts writing, the direction you did not build becomes the direction that decides whether the whole modernization holds together.

Vaseem has a related piece in the pipeline on resilient business process automation built on microservices and event-driven architecture. The through-line is the same one that runs through Co-Existence. The interesting engineering is rarely in the diagram everyone agrees on at the start. It is in the second arrow, the one somebody has to draw later, pointing the other way.

Author:
Written byTom Allen

Founder of The AI Journal. I like to write about AI and emerging technologies to inform people how they are changing our world for the better.

Follow Tom Allen