Monolith to Microservices Migration: 8 Steps to Keep Production Live
Last verified: 2 December 2026 Quick answer A monolith to microservices migration works best as an incremental strangler-fig migration, not a big-bang rewrite. Map dependencies, define service boundaries, route traffic through a gateway, extract one service at a time and split its data in phases. AI agents speed up the work, while people approve each…

A monolith to microservices migration works best as an incremental strangler-fig migration, not a big-bang rewrite. Map dependencies, define service boundaries, route traffic through a gateway, extract one service at a time and split its data in phases. AI agents speed up the work, while people approve each cutover.
Most teams do not fail at the first service. Instead, they stall when data, hidden dependencies and release risk pile up. As a result, a monolith to microservices migration needs a plan that proves each step in production before the next one starts.
Below, you will find an 8-step plan with a gate after every step, a pattern guide, a view of where AI agents help, and the mistakes to avoid. It is the plan we run with Xccelera ReForge in our own engagements, and you can also use it without us.
proven migration patterns: strangler fig, branch by abstraction, parallel run and decorating collaborator
services a European telecom split its customer information platform into, in a reported AWS migration
records moved in about 90 minutes in that same reported database migration
Sources: AWS Partner Network Blog, Telia migration; CircleCI, April 2025; Priyal Walpita, Medium.
When Should You Start a Monolith to Microservices Migration?
Start when a specific problem is slowing the business, not because microservices are fashionable. In practice, three signals show up most: scaling limits, deployment bottlenecks and team growth. However, if none of them applies, a well-structured monolith may serve you better.
| Signal | What you see | What to do first |
|---|---|---|
| Scaling limits | One module needs its own scaling, or its failure takes the whole system down | Isolate that module and scale it, then extract it if the limit remains |
| Deployment bottlenecks | Every release ships the entire codebase, so releases slow down | Improve CI/CD and test automation, then extract the hot spots |
| Team growth | Larger teams hit code conflicts and coordination overhead | Assign ownership by business capability, then extract along those lines |
| No real pain | Small team, stable system, releases are fine | Keep a modular monolith, because microservices add operating cost |
Which Migration Pattern Should You Use?
Use the strangler fig pattern for most programs. A gateway or proxy sits in front of the monolith, and you move routes to new services one at a time. The other patterns fill gaps, so most teams combine them. For more on the pattern family, see the guidance on microservices.io.
| Pattern | How it works | Best for |
|---|---|---|
| Strangler fig | A proxy or gateway routes requests between old and new, and you shift routes as services are ready | Most migrations, because it is easy to roll back |
| Branch by abstraction | You wrap a module in an abstraction so old and new implementations coexist, then remove the old one | Code deep inside the monolith with no clean edge |
| Parallel run | You send the same request to both, return the monolith’s answer and compare results | Proving equivalence before cutover |
| Decorating collaborator | You leave the monolith unchanged and add a wrapper that adapts its responses | Adding a lighter API or new behavior without touching the core |
Why not rewrite everything at once? Because a rewrite delays proof until the end, and a failed cutover is hard to undo. For example, our guide to the legacy rewrite timeline problem shows how large rewrites slip.
The 8-Step Monolith to Microservices Migration Plan
Use one sheet per service. Each step below shows what to do, where AI agents help, and the gate that must pass before you move on.
Step 1: Map dependencies and prepare the ground
Prepare
Most failures start with hidden coupling, so map it before you move any code.
Step 2: Define service boundaries
Prepare
Boundaries decide whether you get independent services or a distributed monolith.
Step 3: Put a gateway in front of the monolith
Prepare
A gateway lets you move traffic one route at a time.
Step 4: Pick the first service
Extract
Start where the risk is low and the lesson is high.
Step 5: Extract and test the service
Extract
Move the code, and move its tests with it.
Step 6: Split the data in phases
Extract
Data is often the hardest part, so never rush it.
Step 7: Run in parallel, then shift traffic
Cut over
Prove the new service matches the old one before it takes real traffic.
Step 8: Retire the old code and repeat
Cut over
The old module is only gone when nothing calls it.
Want this plan applied to your own monolith? Our AI architects will map your first three services with your team.
Where Do AI Agents Help in a Monolith to Microservices Migration?
AI agents help most with work that is slow, repetitive and easy to check: mapping, test drafting, code extraction and comparison. People keep the decisions that carry business risk. Also, agent output can be wrong, so every change goes through review and tests.
| Task | What an AI agent does | What a person decides |
|---|---|---|
| Dependency mapping | Reads code, queries and configs to build a call and data map | Which dependencies are real and which are legacy noise |
| Boundary proposals | Suggests candidate service groups from coupling and change history | The final boundaries, based on business capabilities |
| Test creation | Drafts characterization and contract tests | Whether the tests capture the intended behavior |
| Code extraction | Drafts the new service and the adapter in the monolith | Merge approval after code review |
| Data migration | Drafts scripts and reconciliation checks | Cutover timing and who owns the data |
| Parallel-run analysis | Compares paired responses and groups the differences | Whether a difference is a bug or an accepted change |
For a closer look at how an AI modernization engine works from legacy code to live, read our 4-step modernization walkthrough.
What Goes Wrong in a Monolith to Microservices Migration?
Most monolith to microservices migration failures trace back to six causes. Each one has a clear fix, so check this list before you start.
Services that share one database stay tightly coupled and hide dependencies. Therefore, phase the data split and give each service ownership of its tables.
Poor boundaries add network overhead and operating cost without giving teams real independence. Fix it by redrawing boundaries around business capabilities.
A single large cutover ties up the team for months and hides risk until the end. Instead, move one service at a time, with a rollback for each.
Microservices are a means to business goals such as faster releases or independent scaling. If you cannot name the goal, pause the migration.
A change to an interface can break consumers without warning. Add contract tests before extraction, and run them in every pipeline.
Teams built around the monolith need to move to cross-functional ownership of services. Plan this alongside the technical work.
What Does a Real Monolith to Microservices Migration Look Like?
Telia, a European telecom, moved its customer information platform from an on-premises monolith to containerized microservices on AWS. The team split the system into six services, ran each in containers behind a load balancer, and moved an Oracle database to Aurora PostgreSQL. According to the AWS Partner Network case study, the database move covered more than 70 million records in about 90 minutes, and deployments became a single click.
The lesson is the same as in the plan above. The team separated services first, handled data as its own workstream, and automated the pipeline. Note that this is a vendor-reported case, so use it as an example, not a benchmark.
How Does Xccelera AI Run a Governed Monolith to Microservices Migration?
Xccelera AI runs this plan with Xccelera ReForge, our AI modernization engine, and keeps people in control at every gate. Agents do the mapping, drafting and comparison, while your architects approve boundaries, data cutovers and traffic shifts. Also, each extracted service gets its own rollback checkpoint, so production keeps running.
Our monolith to microservices migration approach builds on the guide to legacy application modernization with AI. If your move is a language change rather than an architecture change, see our COBOL to Java migration tools guide.
Monolith to Microservices Migration FAQs
How do you migrate a monolith to microservices step by step?
Map dependencies, define service boundaries, put a gateway in front of the monolith, extract one low-risk service, split its data in phases, run old and new in parallel, then shift traffic and retire the old code. Repeat for each service.
What is the strangler fig pattern?
It is an incremental migration pattern. A proxy or API gateway sits in front of the monolith, and you route requests to new services as they are ready. Because the monolith keeps running, rollback is easy.
Should you rewrite a monolith all at once?
Usually not. A big-bang rewrite hides risk until late and is hard to roll back. Incremental extraction lets you prove each service in production before moving on.
How do you split a database during a migration?
First, restrict which services can read which tables. Then give each service its own database and copy the data at first. Use events or sagas for workflows that cross services, and replace foreign keys with identifiers.
More Questions About Microservices Migration
What is a distributed monolith?
It is a system split into services that still depend on each other so tightly that they must change and deploy together. It comes from poor service boundaries and shared data.
What are the main monolith to microservices migration patterns?
The four common ones are strangler fig, branch by abstraction, parallel run and decorating collaborator. Most programs combine the strangler fig with a parallel run before cutover.
Can AI agents migrate a monolith automatically?
No. Agents speed up dependency mapping, test writing, code drafting and comparison, but people approve boundaries, data cutovers and traffic shifts. Every change still goes through review and tests.
Does this approach depend on the tech stack?
No. The steps are the same for Java, .NET or other stacks, such as a Spring Boot application. Only the tooling changes, not the sequence or the gates.
Migrate One Service at a Time, and Prove Each One
Therefore, a safe monolith to microservices migration is a series of small, reversible moves. Map the system, draw boundaries around business capabilities, extract one service, split its data, run in parallel and only then shift traffic. Also, keep a gate and a rollback for every service. What is the one service in your monolith that you could extract first? Tell us in the comments, and subscribe for more migration guides.
Plan Your First Service Extraction
Get a dependency map and a gated migration plan for your first three services.


