Quick revision
The short answer
I would first ask which problem the split should solve, whether deployment contention, scaling, team autonomy or reliability, because the answer changes the plan. Then I would propose modularising inside the monolith first, which tests the boundaries cheaply and often solves the ownership problem on its own, and extracting only a few services where the benefit is clear, using the strangler fig approach. Before extracting, platform basics such as CI/CD, observability, service templates and on-call must exist, the plan must account for distributed-system costs, and milestones should be measurable outcomes rather than a service count.
What to remember
In this answer, we responded to a request for 60 microservices in a year by first asking which problem the split should solve, then proposing modularisation inside the monolith to test boundaries cheaply and often fix ownership on its own. We extract only a few services with a clear benefit, using the strangler fig approach, after the platform basics of CI/CD, observability, templates and on-call exist, and we budget for network failures, data consistency and operations. Progress is tracked with outcome milestones such as lead time and independent releases, not a 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.
I would first ask which problem the split should solve, whether deployment contention, scaling, team autonomy or reliability, because the answer changes the plan. Then I would propose modularising inside the monolith first, which tests the boundaries cheaply and often solves the ownership problem on its own, and extracting only a few services where the benefit is clear, using the strangler fig approach. Before extracting, platform basics such as CI/CD, observability, service templates and on-call must exist, the plan must account for distributed-system costs, and milestones should be measurable outcomes rather than a service count.
Why this question is asked
A request like 60 microservices in a year usually comes from real pain: releases that take weeks, teams blocking each other, or an outage that took down everything. The number 60 is rarely the point. A senior engineer's job is to treat the pain seriously and steer the solution towards something that will actually relieve it, without either refusing or blindly executing a plan that is likely to fail. Interviewers ask this leadership question to see how we handle that conversation and what plan we put on the table. In this answer, we will start with the question behind the request, look at why a direct split is risky, propose modularisation first, choose the few services worth extracting, list the platform prerequisites, and define milestones leadership can track.
1Start With the Problem Behind the Request
The first conversation is with the people who set the goal. We ask what they expect to be different in a year. The answers typically fall into four groups. Deployment contention: teams wait for each other because everything ships together. Scaling: one part of the system needs far more capacity than the rest. Team autonomy: teams cannot change their area without coordinating with others. Reliability: a failure anywhere takes down everything.
Each problem has a different best answer. Deployment contention and team autonomy are mostly about boundaries and ownership, which modularisation can fix inside the monolith. Scaling is often limited to one or two hot paths, which justifies extracting those specifically. Reliability may need isolation of a few critical paths, plus better testing and release practices. So by the end of this conversation we have a goal stated as an outcome, such as each team can release its area independently at least weekly, rather than a count of services.
2Why 60 Services in a Year Is Risky
A one-million-line monolith has boundaries we do not yet know. If we cut 60 services along guessed boundaries, some of them will be wrong, and a wrong boundary between services is far more expensive to fix than a wrong boundary between packages: it means changing APIs, moving data between databases and coordinating releases. The usual result is a distributed monolith, where services must still be deployed together but now fail over the network too.
There is also simple arithmetic. Sixty services in about 50 working weeks is more than one extraction a week, each needing data migration, new pipelines, dashboards, alerts and an on-call owner. Few organisations have the platform or the people to do that safely, and the business features stop while it happens.
3Modularise Inside the Monolith First
The cheaper first step is to create real modules inside the existing codebase. We identify business capabilities, move code into one package or build module per capability, give each a public API, enforce the boundaries with ArchUnit or Spring Modulith, and assign each module to a team. Where modules share tables, we start separating data ownership.
This tests the proposed boundaries cheaply: if two modules turn out to need each other's internals constantly, we merge or redraw them in an afternoon instead of rewriting two services. And it often solves the ownership problem on its own, because teams can work in their module with clear rules, and with a good pipeline and feature flags, release contention drops a lot even before any service exists.
- Ask what problem the split solvescontention, scaling, autonomy, reliability
- Modularise the monolithpackages or build modules, enforced boundaries, owners
- Platform basics ready?YesPick extraction candidatesNoBuild CI/CD, observability, templates, on-call first
- Clear benefit for this module?YesExtract with the strangler figNoLeave it as a module
- Measure outcomeslead time, deploy frequency, incidents, cost
5 steps in order. Play them, or step through them one at a time.
Extraction is the last step and only for modules where it pays.
4Extract a Few Services Where the Benefit Is Clear
Once modules exist and their boundaries have held for a while, we pick a small number to extract, perhaps three to six in the first year. Good candidates have a clear reason: a module that needs very different scaling, such as search or notifications; one with a very different release rhythm or reliability need, such as payments; or one owned by a team that is consistently blocked by the rest.
Each extraction uses the strangler fig approach, named after a plant that grows around a tree and gradually replaces it. We put a routing layer in front, build the new service beside the old module, route a small share of traffic to it, compare results, grow the share, and finally delete the module's code from the monolith. At every step we can route back, so there is no big cut-over.
5Make Sure the Platform Basics Exist
Microservices move complexity from code into operations. Before the first extraction, we need a CI/CD pipeline that can build, test and deploy a service independently in minutes. We need observability: centralised logs, metrics, and distributed tracing so a request can be followed across services. We need a service template so every new service starts with health checks, security and telemetry. And we need on-call ownership, so every service has a team that is paged when it fails.
We also plan for distributed-system costs that do not exist in the monolith: network calls that time out or fail partially, which need timeouts, retries and circuit breakers; data consistency without a shared transaction, which needs events, outbox tables and idempotent consumers; and the operational cost of running, securing and upgrading many deployables. Budgeting for these up front prevents the common outcome of services that are slower and less reliable than the monolith they replaced.
6Milestones Measured in Outcomes
Finally, we agree on milestones that measure the outcome leadership wants, not the number of services. Examples are: within three months, module boundaries defined and enforced for the ten largest areas, with owners; within six months, lead time for changes cut from three weeks to one; within nine months, the first two extracted services running with full observability and on-call; within a year, each team able to release independently weekly, and incidents in one area no longer taking down others.
These give leadership something better than 60: evidence that the pain is going away. If an outcome is met without extracting a service, that is a success, not a shortfall.
7Follow-up questions
What if leadership insists on the number anyway?
We explain the risks concretely, with the arithmetic and examples of distributed monoliths, and offer the outcome-based plan with dates. Usually the number came from a wish to show progress, and outcome milestones show progress more convincingly. If they still insist, we agree on the riskiest assumptions to test first, such as extracting two services in the first quarter, and review the plan with real data.
How do you find good module boundaries in a million lines?
We combine business capability mapping with data from the code: which classes change together in version history, which tables are used by which code, and where teams already work. Event storming workshops with domain experts help name the capabilities. The first boundaries will not be perfect, which is exactly why we test them as modules first.
Is there ever a case for a fast, large split?
Rarely. If the organisation already has a mature platform and clear domain boundaries, a faster pace is possible, but even then extraction happens one service at a time with the strangler approach. A large simultaneous split is mostly a rewrite under another name.
8Conclusion
In this answer, we responded to a request for 60 microservices in a year by first asking which problem the split should solve, then proposing modularisation inside the monolith to test boundaries cheaply and often fix ownership on its own. We extract only a few services with a clear benefit, using the strangler fig approach, after the platform basics of CI/CD, observability, templates and on-call exist, and we budget for network failures, data consistency and operations. Progress is tracked with outcome milestones such as lead time and independent releases, not a service count.
Open with
I would start by asking what problem the split is supposed to solve. Usually it is one of four: teams blocking each other on deployments, one part of the system needing to scale, teams lacking autonomy, or a failure anywhere taking everything down.
Then, if they want more
Each has a different best answer, so I would turn the goal into an outcome, like each team can release independently every week.
Then I would explain why 60 services in a year is risky: in a million lines we do not know the right boundaries yet, a wrong boundary between services is very expensive to fix, and more than one extraction a week, each with its own data, pipeline and on-call, usually ends in a distributed monolith.
My proposal is to modularise inside the monolith first: modules per business capability with public APIs, enforced with ArchUnit or Spring Modulith, separate data ownership and a team per module. That tests boundaries cheaply and often fixes the ownership problem by itself.
Then extract a few services, maybe three to six in the first year, where there is a clear reason like different scaling or reliability needs, using the strangler fig approach so we can route back. Before the first extraction, CI/CD, observability with tracing, a service template and on-call must exist, and we budget for network failures and consistency.
And I would report progress as outcomes like lead time and incident isolation, not a service count.
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 "Leadership asks you to split a one-million-line monolith into 60 microservices within a...": https://scrivio-interview-library.netlify.app/java/application-architecture/51c666dfeb/