The core system nobody dares to change
At a glance
Section titled “At a glance”| Aspect | Aspect |
|---|---|
| Typical organization | A bank, insurer, manufacturer or public agency whose core records live on a mainframe or a decades-old ERP |
| Symptoms | Every new channel or product waits months for core changes; few people understand the system; vendor or skills risk |
| Root cause | New needs are met by changing the core itself, so it becomes ever more customized and fragile |
| Usual fix | Wrap the core with APIs, copy its data out for reads, and move capabilities out one at a time |
| Patterns | API-led connectivity, change data capture, strangler fig, event-driven |
Sound familiar?
Section titled “Sound familiar?”- A new mobile feature needs a change on the mainframe, and the next release window is months away.
- The few people who understand the core system are close to retirement.
- Every integration is a custom file transfer or screen-scraping job.
- Read traffic from new channels is pushing the core toward its capacity, and its costs up.
- The ERP is so customized that upgrading it is a multi-year project.
Why it happens
Section titled “Why it happens”Core systems are reliable and hold the most valuable data, so every new need gets built into them. Each customization makes the next one harder and the system harder to upgrade or replace. A “big bang” replacement looks tempting, but replacing everything at once is among the riskiest projects an organization can take on.
Your options
Section titled “Your options”| Option | When it fits | Cost and risk |
|---|---|---|
| Wrap it with APIs | New channels need core functions; the core itself works | Low to medium. Quick value; the core stays as it is |
| Copy data out for reads with change data capture | Read load or reporting is straining the core | Medium. Copies are slightly behind the core |
| Replace capability by capability (strangler fig) | Specific functions need to change often | Medium to high. Long, but each step is reversible |
| Re-platform the whole system, such as emulating the mainframe on new hardware | Hardware or license cost is the main problem | Medium. Saves cost, but the code stays as hard to change |
| Big-bang replacement | Rarely; only when the core is truly unsupportable | Very high. Long freeze on change and a risky cut-over |
A proven approach
Section titled “A proven approach”- Stop adding to the core. Agree that new capabilities are built outside it unless there is no alternative. For an ERP, this is often called keeping a “clean core”.
- Put an API layer in front of it, so channels call stable APIs instead of the core’s own interfaces.
- Stream changes out with change data capture, so new applications and reports read a copy instead of the core.
- Move one capability at a time, starting with one that changes often and has few dependencies. Route its traffic to the new service and keep the core as a fallback until the new path is proven.
- Shrink the core as capabilities move, until what remains can be retired or kept as a stable system of record.
- New channels call a stable API layer, never the core directly.
- New capabilities are built outside the core.
- Reads are served from a copy, taking load off the core.
- Change data capture streams every change in the core to the read store. Writes still go to the core (dashed line) until each capability has moved.
Trade-offs and what to watch
Section titled “Trade-offs and what to watch”- Two systems of record for a while. During each move, be explicit about which system owns each piece of data.
- Copies lag behind. Read stores fed by change data capture are seconds or minutes behind; some decisions must still read the core.
- The API layer can become a new bottleneck if every change to it needs a central team.
How you’ll know it worked
Section titled “How you’ll know it worked”New features ship without core release windows, read load and cost on the core fall, and the list of capabilities still inside the core shrinks each quarter.
Seen in the real world
Section titled “Seen in the real world”- Airbnb moved functions out of its monolith one at a time behind the existing interface.
- Netflix kept both worlds running until the last piece had moved.
- HealthCare.gov shows how hard large integrations with many existing systems can be.
Related on ArchitectureCompass
Section titled “Related on ArchitectureCompass”- See it applied: Example Lending, a three-stage strangler migration with a parallel run
- API-led connectivity
- Enterprise service bus
- Integration spaghetti
Written and edited by Abhinav Taduka, enterprise software architect.
New pages are added regularly. Follow Abhinav on LinkedIn to see them first.