Quick revision
The short answer
I would measure the real cost of each service, including infrastructure, on-call load, upgrade effort, inter-service traffic and coordination time, and look for services that change together, carry tiny traffic or belong to the same team. Those become candidates to consolidate into fewer, well-modularised services, while we keep real independence where it pays. I would present it as an evolution with measured goals so the architecture matches today's organisation, not as a reversal, and carry it out incrementally with clear ownership and rollback.
What to remember
In this answer, we assessed the cost of microservices per service, counting infrastructure, on-call load, upgrades, inter-service traffic and coordination. We found consolidation candidates among services that change together, carry tiny traffic or belong to the same team, kept independence where scaling, compliance or ownership justify it, framed the change as an evolution with measured goals, and planned incremental merges with clear owners and rollback.
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 measure the real cost of each service, including infrastructure, on-call load, upgrade effort, inter-service traffic and coordination time, and look for services that change together, carry tiny traffic or belong to the same team. Those become candidates to consolidate into fewer, well-modularised services, while we keep real independence where it pays. I would present it as an evolution with measured goals so the architecture matches today's organisation, not as a reversal, and carry it out incrementally with clear ownership and rollback.
Why this question is asked
After several years of microservices, many companies find that the costs arrived as promised and some of the benefits did not. When leadership asks whether to consolidate, the worst answers are ideological ones: microservices were a mistake, or microservices are always right. Interviewers ask this question to see whether a senior leader can measure the architecture's cost, find the specific places where consolidation helps, and present the change in a way the organisation can accept. In this answer, we will build a cost model per service, find consolidation candidates, decide what to keep separate, frame the change for leadership, and plan the migrations.
1Measuring the Cost of Each Service
Cloud bills and incident counts are symptoms; to act on them we need the cost per service. Infrastructure is the easiest part: compute, storage, load balancers and data transfer, which tagged cloud resources can attribute to each service. Many small services run at low utilisation, each with at least two or three replicas for availability, so a service handling ten requests a minute can cost as much as one handling a thousand.
The hidden costs are mostly people. On-call load: pages per service per month. Upgrade effort: engineer hours per service to take a Spring Boot or JDK upgrade, multiplied by how many services each team owns. Inter-service traffic: network calls and cross-zone data transfer charges. Coordination: how often changes need releases in several services, which we can read from the ticket and deployment history. Putting these together gives a rough monthly cost per service, and the distribution is usually very uneven.
| Service | Requests/min | Monthly cost | Changes with |
|---|---|---|---|
| checkout-api | 12,000 | high, justified by load | rarely others |
| promo-eligibility | 15 | 3 replicas, 6 pages/month | promo-rules 80% |
| promo-rules | 20 | 3 replicas, 4 pages/month | promo-eligibility 80% |
| address-formatter | 200 | low, but in every chain | customer-profile 60% |
| search-indexer | bursty | high, scales on its own | rarely others |
2Finding Where to Consolidate
Three patterns point to consolidation. Services that change together: if promo-eligibility and promo-rules are released together 80 percent of the time, they are one unit of change paying the cost of two. Services with tiny traffic: a service with fifteen requests a minute still pays for replicas, pipelines, dashboards and upgrades. Services owned by the same team in the same domain: one team running eight services for one capability carries eight sets of operational work for one set of decisions.
Tracing data adds another view: long synchronous chains that appear in incidents, where several hops exist only because data was split finely. Combining these views produces a short list of clusters, each with evidence and an estimated saving.
3Keeping Real Independence Where It Pays
Consolidation is not a return to one big monolith. Some services earn their independence: checkout-api scales with traffic peaks, search-indexer has a bursty, heavy workload, a payments service may need a separate compliance boundary, and a service owned by a different team on a different release cadence would suffer from being merged.
So the goal is fewer, larger services that each correspond to a domain or a team, and inside each merged service we keep clear modules, for example with Spring Modulith, so the parts stay understandable and can be separated again if the reason returns.
- Change together or tiny traffic?YesCandidate to mergeNoKeep separate
- Different scaling, compliance or team?YesKeep separate, document whyNoMerge into one modular service
- Estimate the savingreplicas, pages, upgrade hours, hops removed
- Plan merge with rollbacksame APIs, gradual traffic move
4 steps in order. Play them, or step through them one at a time.
4Framing It for Leadership
How the change is described matters a great deal. If it is presented as admitting that microservices failed, teams who built them will resist and leadership will ask why they paid for them. I would present it as an evolution: the architecture was designed for the organisation and the product of seven years ago, the organisation has changed (perhaps fewer, larger teams, a stable domain), and the architecture should match today's needs.
The proposal would contain measured goals, for example reduce the number of deployables from 220 to 120, cut monthly infrastructure cost by 25 percent, halve pages per team, and reduce lead time for changes in the promotions domain. Each goal has a baseline and is checked quarterly. That makes the change accountable and lets leadership stop or adjust it if the results do not appear.
5Carrying It Out Incrementally
Each consolidation is a small project with a named owning team, not a central programme that touches everything at once. A typical merge moves one service's code into the other as a module, keeps the same external API (the gateway routes the old paths to the merged service), merges or reconnects the data, and retires the old deployment once traffic has moved and error rates are stable.
Every step keeps a rollback: the old deployment stays available for a few weeks, and the routing change can be reverted in minutes. We start with the clusters that have the clearest evidence and the lowest risk, show results, and use them to build confidence for harder merges.
6Follow-up questions
How do you get teams to support consolidation?
By involving them in the analysis, showing the data about their own services, and pointing to what they get back: fewer pages, fewer upgrades and more time for product work. Teams usually welcome removing operational load once it is clear the change is not a judgement on their earlier work.
What if consolidation increases a merged service's blast radius?
It can, so we consolidate within a domain and team, keep resource limits and bulkheads inside the merged service, and avoid merging services with very different criticality. A low-priority reporting feature should not share a process with payment authorisation.
How long would this take for a company with a few hundred services?
Usually one to two years, done as a steady stream of merges alongside product work rather than a freeze. The early merges deliver most of the savings because they target the clearest cases.
7Conclusion
In this answer, we assessed the cost of microservices per service, counting infrastructure, on-call load, upgrades, inter-service traffic and coordination. We found consolidation candidates among services that change together, carry tiny traffic or belong to the same team, kept independence where scaling, compliance or ownership justify it, framed the change as an evolution with measured goals, and planned incremental merges with clear owners and rollback.
Open with
I would start by making the cost visible per service rather than arguing about microservices in general. For each service I would gather infrastructure cost from tagged cloud resources, on-call pages, the engineer hours it takes to apply upgrades, its inter-service traffic, and how often it has to be released together with other services, from the deployment and ticket history.
Then, if they want more
The cost is usually very uneven. Then I would look for consolidation candidates: services that change together most of the time, services with tiny traffic that still pay for replicas and pipelines, and groups of services owned by the same team for one capability. Tracing data also shows long call chains that appear in incidents.
I would merge those clusters into fewer services, each structured as clear modules, while keeping real independence where it pays, such as a high-traffic checkout, a bursty indexer or a payments service with its own compliance boundary.
For leadership I would frame it as an evolution: the architecture should match today's organisation, not the one from seven years ago, with measured goals like fewer deployables, lower cloud cost, fewer pages per team and shorter lead time, reviewed quarterly.
Each merge would be its own small project with an owning team, the same external APIs, gradual traffic moves and a rollback path.
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 documentation below. What the checks cover
- Where the question comes from
- Written by Scrivio for practice. It is not taken from an interview.
- Official documentation
- Spring Cloud documentation, Resilience4j documentation
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 "After seven years of microservices, your company's cloud costs and incident rates are...": https://scrivio-interview-library.netlify.app/spring-boot/microservice-design/6183738317/