With the popularisation of microservices at the turn of the century there has been a constant push to break monoliths into microservices. There have been two fronts advocating for the jump as well as those those do not recommend the switch of the monolith is healthy. As with any paradigm shift, this kind of migration has been called ground-breaking and unwarranted at the same time.

Now comes AI into the picture and engineers are asked to work with the same team who is still maintaining the monolith; to also migrate it to microservices. And this has become a point of contention in multiple teams (at the ground level).

The more useful engineering question is simpler: what problem will become measurably easier after the split?

AI can generate service scaffolding, move code, add API clients, and produce a very convincing migration diagram. Those tasks used to make decomposition visibly expensive. Making them cheaper does not prove that the resulting boundaries are correct.

I would require the architecture to justify every new operating boundary before approving the migration.

A microservice is an ownership boundary

Teams sometimes describe the target as if it were mainly a repository change:

one repository ↓ six repositories ↓ microservices 

That creates six codebases. It does not necessarily create six independently operable services.

Microsoft's microservices guidance makes data sovereignty and an autonomous lifecycle part of the service boundary. Its CI/CD guidance expects each team to build and deploy the services it owns independently, validate changes through quality gates, and keep a new service version from breaking its consumers.

Those properties require more than generated code:

  • a business capability with a stable boundary
  • an owner who can change and support it
  • a private data model or an explicit transition towards one
  • a versioned interface and known consumers
  • an independent deployment and rollback path
  • monitoring, alerting, capacity, and recovery
  • a way to handle partial failure across services

If two services still share tables, release together, fail together, and require the same three people to debug them, the company has paid the distribution cost without gaining much independence.

Start with the constraint the monolith cannot satisfy

"The application is old" is not enough. "Microservices scale better" is not enough either. Scale which component, under what load, and why can it not be isolated inside the current deployment?

I would ask for one primary constraint:

Observed constraint Evidence Possible response
Releases require coordination across unrelated teams Lead time and blocked-release history Separate the independently changing capability
One workload needs a different scaling profile Resource and latency measurements Extract or isolate that workload
Failures in one area repeatedly take down another Incident and dependency evidence Create a failure boundary
Regulatory or data residency rules differ by domain Explicit control requirement Separate data and deployment ownership
The code is difficult to understand Coupling and change evidence Modularise before distributing

The last row matters. Network calls do not repair an unclear domain model. They preserve the confusion while adding latency, retries, authentication, deployment coordination, and more places to observe.

AWS's current monolith-decomposition guidance recommends understanding the business use case, technology, and interdependencies before decomposing. It also describes a monolith as a valid choice when responsibilities and domain knowledge are not clear enough to define stable boundaries.

Sometimes the right first move is a better monolith.

Make AI map the coupling before it moves the code

This is where AI can be genuinely useful.

Give it the repository, database schema, traces, deployment configuration, and change history. Ask it to produce evidence that engineers can inspect:

  • modules that frequently change together
  • tables written by multiple domains
  • calls that cross candidate boundaries
  • transactions that would become distributed
  • jobs and reports that read across the proposed split
  • consumers that rely on undocumented behaviour
  • teams that approved or operated recent changes

The generated map is a hypothesis. Compare it with runtime traces, production queries, incident records, and the people who understand why the system behaves as it does.

Code proximity can suggest a boundary. It cannot tell you that two business operations must commit atomically at month end, or that a report used by finance depends on a table no application trace touches. Repositories show implementation. The domain includes decisions and obligations that may never have been written down.

I would use AI to shorten discovery and mechanical refactoring. I would not let it decide the business boundary from code alone.

The database is usually where the presentation ends

Moving a controller into a new service is easy to demonstrate. Moving ownership of its data without breaking transactions, reporting, deletion, reconciliation, and recovery is the actual migration.

AWS's strangler fig guidance warns that premature decomposition is costly when the domain is unclear. It also shows the transition work that an architecture slide often compresses into one arrow: proxy routing, an anti-corruption layer, data synchronisation, eventual consistency, and the later removal of temporary components.

For each proposed service, I would require answers to these questions:

  1. Which data does this service own after the migration?
  2. Which component is allowed to write it during transition?
  3. Which transactions cross the new boundary?
  4. How do old consumers receive compatible data?
  5. How is historical data moved and reconciled?
  6. What is the rollback plan after writes begin in the new service?

If the answer is "both applications will write the shared database for a while," define how conflicts are prevented and when that state ends. Temporary coupling is normal during a migration. Permanent ambiguity is not.

Add a service admission test

AI lowers the effort required to create a service. That makes an admission test more important, not less.

Before a team adds a production service, I would ask for a short service contract:

Business capability: Owned data: Owning team: On-call and escalation: Interface and consumers: Availability objective: Deployment and rollback: Backup and recovery: Expected retirement condition: 

The retirement condition may look strange. It forces the team to admit that services are not free, permanent trophies. If the capability disappears or moves back into a larger boundary, someone must know how to remove the service, its credentials, pipelines, dashboards, data copies, and alerts.

This contract also changes the approval conversation. The question is no longer "Can Claude produce the code?" It is "Can this team operate the boundary it wants to create?"

Extract one boundary and make it prove the architecture

A full rewrite hides learning inside a large programme. I would choose one boundary with clear evidence and migrate it end to end.

The sequence is intentionally boring:

measure the current problem ↓ define the domain and data owner ↓ create contract tests around existing behaviour ↓ route one capability through an abstraction ↓ deploy the new service beside the monolith ↓ move a small traffic cohort ↓ reconcile data and compare outcomes ↓ test failure and rollback ↓ remove the old path 

AI can help generate the contract-test candidates, adapters, client libraries, infrastructure definitions, and migration checks. Engineers still need to decide what behaviour is contractual, which mismatch is acceptable, and when the evidence is strong enough to move traffic.

Measure whether the extracted service improves the constraint that justified it:

  • Did release lead time fall for the affected capability?
  • Can its team deploy without coordinating with the monolith team?
  • Did the failure blast radius shrink?
  • Can the service recover within its stated objective?
  • How much operational work did the new boundary add?
  • Did incidents become easier to diagnose or merely more distributed?

If the expected benefit does not appear, stop. A pilot that prevents five more unnecessary services is a successful pilot.

Team topology must match the system topology

A service needs a team with the authority and knowledge to own it. Creating twelve services for one team can make delivery slower because every feature still crosses the same people, only now through twelve deployment pipelines.

Creating twelve services for twelve temporary project teams is not much better. When the project ends, the permanent platform or operations team inherits the services without the domain context that shaped them.

The design should answer:

  • Who approves an interface change?
  • Who responds when the service is healthy but its data is wrong?
  • Who pays for capacity and observability?
  • Who coordinates a change that crosses three services?
  • Who decides when the boundary should merge, split, or disappear?

If all answers point to a central architecture or platform team, the services are not as autonomous as the diagram suggests.

A decision that can say no

I would approve a split when a measured constraint, a stable domain boundary, and a capable owning team line up. I would postpone it when the main evidence is age, fashion, or the availability of generated code.

The recommendation changes when the monolith demonstrably blocks independent delivery, targeted scaling, regulatory separation, or failure isolation. Even then, I would extract the smallest boundary that can prove the benefit and keep the rest of the application where it is.

AI has made the mechanics of decomposition cheaper. Good. Use that advantage to test a boundary with less effort.

Do not confuse a cheaper migration with a justified one.