Menu

1 / 3

Strangle, don't rewrite: patterns around a COBOL core to modern Java

DEV Community: tutorial·Wallace Espindola·5 days ago
#nQCVoW9T
#devtotutorial#devto#dev#legacy#event
Reading 0:00
15s threshold

Say your bank runs its ledger on a COBOL core, and the mobile team wants a modern account inquiry API. Nobody wants a big-bang rewrite of the core, so someone draws a facade in front of the mainframe and says the magic words: Strangler Fig. Route one operation at a time to new code, and let the old system shrink.

That's the right starting point, and Martin Fowler's Strangler Fig Application page explains it well. The trouble starts the day after the facade goes in. The new service has to read packed decimals out of copybook records. It has to know whether a balance is posted or only memo-posted. It has to prove it computes the same interest as the old code before anyone flips a route. And once it publishes events, it has to survive the broker delivering the same event twice.

That work falls to the patterns you add around the facade.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.