Quick revision
The short answer
First we measure the current state: lead time, change failure rate, incidents, which services always deploy together and which share databases. Then we merge services that are too fine-grained or always change together, since fewer, larger services are a valid outcome; fix the platform gaps that make many services expensive, such as deployment pipelines, observability and contract testing; realign ownership so each service has exactly one owning team; and reset the programme's goals around outcomes like delivery speed and reliability instead of the number of services extracted.
What to remember
In this answer, we saw how to rescue a microservices programme with 80 services, slower delivery and more incidents: measure lead time, change failure rate, incidents, co-deployed services and shared databases; merge services that are too fine-grained or always change together; fix platform gaps in pipelines, observability and contract testing; give each service one owning team; and reset the goals to delivery speed and reliability instead of service count.
Your turn
Answer it aloud as you would in the interview, or type your answer below. Then show one part at a time and compare.
First we measure the current state: lead time, change failure rate, incidents, which services always deploy together and which share databases. Then we merge services that are too fine-grained or always change together, since fewer, larger services are a valid outcome; fix the platform gaps that make many services expensive, such as deployment pipelines, observability and contract testing; realign ownership so each service has exactly one owning team; and reset the programme's goals around outcomes like delivery speed and reliability instead of the number of services extracted.
Why this question is asked
Many microservices programmes reach this point: a few years in, the service count has grown, yet releases are slower and incidents more frequent than in the monolith days. The reason is usually not microservices as such, but services that are too small, coupled through shared data or synchronous calls, and a platform that was never built to support so many of them. Interviewers ask this to see whether an architect can diagnose with data and is willing to reverse course where needed. In this answer, we will measure the state, find the wrong boundaries, merge services, fix platform gaps, realign ownership and reset the goals.
1Measuring the Current State
Before changing anything, we need facts, because everyone will have a theory. We collect the delivery metrics popularised by the DORA research: lead time for changes, deployment frequency, change failure rate and time to restore service, and compare them with the period before the programme if data exists. We collect incident data: how many incidents, how many involve calls across several services, how many were caused by one service's change breaking another.
Then we look for structural signals. Services that always deploy together, for example because a feature needs changes in four services released in a fixed order, are a sign they are really one component. Shared databases, where several services read and write the same tables, are another. A dependency graph from tracing data shows chains of synchronous calls: if one user request passes through nine services, each one's latency and failure adds up. We also list each service's owning team, or note where there is none.
| Signal | Finding (example) | What it suggests |
|---|---|---|
| Lead time | 3 days before, 11 days now | coordination overhead |
| Change failure rate | 8 percent before, 22 percent now | changes break neighbours |
| Services always deployed together | 14 groups of 3 to 6 services | boundaries are wrong |
| Services sharing a database | 31 of 80 | coupled through data |
| Longest synchronous call chain | 9 services for checkout | fragile, slow requests |
| Services without one clear owner | 17 | nobody fixes them |
2Finding and Merging Services That Belong Together
A boundary is right when most changes stay on one side of it. When services always change and deploy together, or call each other for every request, the boundary is in the wrong place. We use the measurements to find these groups: co-change analysis from git history (which services' repositories change in the same week for the same ticket), deploy logs and call graphs.
For such groups, merging is often the best fix. Three services for 'cart', 'cart pricing' and 'cart validation' that always change together can become one cart service. The merged service has one deployment, one database, local transactions instead of distributed ones, and method calls instead of network calls. Fewer, larger services are a valid outcome, and saying so openly matters, because teams may feel that merging admits failure. It does not; it applies what the last two years taught us about the domain.
- Do they always change or deploy together?YesCandidate for mergingNoCheck data sharing
- Do they share a database?YesMerge, or give one of them ownership of the dataNoCheck call chains
- Is there a long synchronous chain?YesMerge or switch to eventsNoKeep the boundary
- Merge in stepsone deployment first, then one codebase and schema
4 steps in order. Play them, or step through them one at a time.
3Fixing the Platform Gaps
Eighty services are only manageable if each one is cheap to build, deploy and operate. Often the programme extracted services faster than it built the platform for them. Common gaps are deployment pipelines that are copied and modified per service, observability that differs from service to service so a request cannot be followed end to end, and no contract testing, so a change in one service's API is only discovered when another breaks in production.
So part of the fix is investment in a platform: a standard pipeline template, a golden path for new and existing Spring Boot services with standard health checks, metrics and logging, distributed tracing with OpenTelemetry across all services, and consumer-driven contract tests, for example with Spring Cloud Contract or Pact, run in every build. These directly target the change failure rate and the time to restore service.
4Realigning Ownership With Teams
Every service should have exactly one owning team, which builds it, runs it and is on call for it. Services with no owner decay, and services owned by several teams have unclear priorities. With 80 services and, say, 12 teams, we map services to teams and look at the result: some teams may own 15 services, far too many to know well, while 17 services have no owner at all.
Merging services helps here as well, since it reduces the count. The remaining services are assigned so each team owns a coherent set aligned with a business area, which also means the team's work mostly stays inside its own services. This is Conway's law used deliberately: system structure tends to mirror team structure, so we shape both together.
5Resetting the Programme's Goals
Many such programmes measure progress by the number of services extracted, which rewards exactly the over-splitting that caused the problems. We reset the goals to outcomes the business cares about: lead time back under four days, change failure rate under 10 percent, fewer customer-facing incidents, and specific business capabilities that become easier to change. Service count becomes an output, not a target.
This reset needs to be communicated clearly to leadership and teams: what we learned, what we will change, what we will measure, and when we will report back, for example a quarterly review of the same metrics we collected at the start. Showing the metrics improve is what restores confidence in the programme.
6Follow-up questions
Isn't merging services a step back to the monolith?
No. The goal was never a number of services but independent, reliable change. Merging services that always change together removes coordination and network failures while keeping real boundaries where they help. We end with fewer, better-shaped services, not one monolith.
How do you merge two services safely?
Usually in steps: deploy them as one application first while keeping their internal modules separate, then merge their schemas into one owned by the new service, replacing remote calls with method calls and distributed transactions with local ones. Feature flags and parallel running help, just as in an extraction.
Which fix would you start with?
Usually measurement and ownership first, because they are quick and expose the worst problems. Then the most painful merge, often the group with the longest synchronous chain on a critical path such as checkout, alongside the platform work that every team benefits from.
7Conclusion
In this answer, we saw how to rescue a microservices programme with 80 services, slower delivery and more incidents: measure lead time, change failure rate, incidents, co-deployed services and shared databases; merge services that are too fine-grained or always change together; fix platform gaps in pipelines, observability and contract testing; give each service one owning team; and reset the goals to delivery speed and reliability instead of service count.
Open with
I would start by measuring, because everyone will have a theory. I would collect the DORA metrics, lead time, deployment frequency, change failure rate and time to restore, ideally compared with before the programme, plus incident data, and structural signals: which services always deploy together, which share a database, how long the synchronous call chains are, and which services have no clear owner.
Then, if they want more
Usually that shows a few clear problems. For services that always change or deploy together, or call each other for every request, I would merge them; fewer, larger services are a perfectly valid outcome, and I would say that openly so teams do not see it as failure.
Then I would fix the platform gaps that make 80 services expensive: a standard pipeline, a golden path with consistent health, metrics and logging, OpenTelemetry tracing across everything, and consumer-driven contract tests so API changes do not break neighbours in production.
I would realign ownership so every service has exactly one owning team with a coherent set of services in one business area. And I would reset the programme's goals away from number of services extracted towards outcomes like lead time and change failure rate, with a quarterly review of the same metrics so people can see whether it is working.
About this answer
- Last updated
- 12 November 2026
- Checked
- Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the official documentation for the version you use. What the checks cover
- Where the question comes from
- Written by Scrivio for practice. It is not taken from an interview.
Report an issue with this answer
Copy the line below and send it to the author with what you found. It carries the address of this page.
Issue with "Your organisation started a monolith-to-microservices programme two years ago. It now...": https://scrivio-interview-library.netlify.app/architecture/modernization/e08ad13894/