Scrivio Interview library
DesignAdvanced6 min read · updated 12 November 2026

An organisation has 300 microservices for 25 teams, many with one or two endpoints, and incidents frequently involve chains of 8 or more calls. How would you assess and improve the decomposition?

We start by measuring instead of guessing: map call chains from tracing data and find which services change together from the version history. Then we merge services that always change together or only forward calls, align the remaining services with team ownership, and replace long synchronous chains with data replication or events where the business can accept eventual consistency. Throughout, consolidation should be treated as a normal, approved kind of change, not as an admission of failure.

Why this question is asked

Three hundred services for twenty-five teams means about twelve services per team, each with its own pipeline, dashboards, alerts, dependency upgrades and on-call duty. When incidents keep involving call chains of eight or more services, it is a strong hint that the system was split more finely than the business or the organisation needed. Interviewers ask this design question at senior levels because the answer has to combine data, architecture and organisational judgement. In this answer, we will see why fine-grained splits cause these symptoms, how to build an evidence-based map of the system, which services to merge, how to deal with long call chains, and how to make consolidation an accepted practice.

1Why Too Many Small Services Hurt

Every network call in a chain adds latency and a chance of failure. If each service in an eight-call chain is available 99.9 percent of the time, the chain as a whole is available roughly 0.999 to the power of 8, about 99.2 percent, which is around six hours of failure a month instead of forty minutes. Latency adds up the same way: eight hops of 30 milliseconds each is a quarter of a second before any real work is done.

The operational cost is just as real. Each service needs upgrades when Spring Boot or the JDK releases a security fix, an alert set, a runbook and someone who remembers how it works. Twelve services per team means a large share of each team's week goes to keeping services alive rather than building features. So the symptoms in the question are not bad luck; they follow directly from the decomposition.

2Building the Map From Evidence

Opinions about which services belong together are cheap and usually wrong in some corner. Two data sources give a better answer. The first is distributed tracing (OpenTelemetry traces collected in a tool such as Jaeger or Tempo), which shows real call chains for each user request: which services are involved, in what order and how often. From traces we can list the top chains by request volume and by involvement in incidents.

The second is change history. By scanning commits and deployment logs across repositories, we can count how often two services change in the same week for the same ticket. A pair that changes together 70 percent of the time is effectively one unit of change. Combined with ownership data from the service catalogue, these two maps tell us where the boundaries are costing us.

Step throughAssessing the decomposition
  1. Collect tracescall chains per user request, depth and volume
  2. Collect change historyservices changed for the same ticket
  3. Overlay team ownershipwho runs what, services per team
  4. Find clusterschains, co-changing pairs, pass-through services
  5. Propose merges and async changesone cluster at a time, with goals
  6. Measure after each changeincidents, latency, deploys per team

6 steps in order. Play them, or step through them one at a time.

3Which Services to Merge

Three patterns make strong merge candidates. Services that always change together, as the change history shows, should usually become one service, because they are already one unit of work and the boundary only adds coordination. Services that exist only to forward calls, for example a customer-address service that receives a request, calls a customer service and returns the result with a field renamed, add a network hop and a failure point without owning any rules or data. And sets of tiny services owned by the same team, serving the same capability, can often be combined without anyone losing independence.

Merging can be done safely. We pick the service that will host the code, move the other service's endpoints into it behind the same URLs, route traffic with the gateway or DNS, and retire the old deployment once traffic has moved. Callers do not need to change at all if the API stays the same.

Example clusters found
ClusterEvidenceProposed change
pricing-rules + pricing-calcchanged together in 74% of ticketsMerge into one pricing service
customer-address-proxyonly forwards to customer-serviceRemove, callers use customer-service
5 promotion services, 1 teamshare a database and a release trainConsolidate into one service
checkout -> 8 synchronous hopsin 6 of the last 10 incidentsReplicate product and price data locally

4Shortening Long Synchronous Chains

Not every chain is fixed by merging. Often a service calls another only to read data that changes rarely, such as product names or tax rates. Instead of asking on every request, the consuming service can keep a local copy updated by events: the product service publishes ProductUpdated on Kafka, and the checkout service stores the few fields it needs. The checkout path then no longer depends on the product service being up.

There is a catch: the copy is eventually consistent, meaning it may lag the source by a few seconds. For a product title that is fine. For a stock level that decides whether we can sell the last item, it may not be, and a synchronous call or a reservation stays the right choice. So each link in the chain gets a deliberate decision based on what the business can accept.

5Making Consolidation Normal

The hardest part is often cultural. In many organisations, splitting a service is seen as progress and merging one as a step backwards, so teams live with bad boundaries rather than admit them. Leadership has to say clearly that boundaries are expected to move as we learn, and that a merge with a measured goal is good engineering.

In practice that means a lightweight, approved process: a short proposal with the evidence from traces and change history, the expected gain (for example, cut the checkout chain from 8 to 4 hops and remove 30 deployables), and a review by the architecture group. Tracking a few numbers over time, such as services per team, average chain depth and incidents involving more than five services, shows whether the decomposition is getting healthier.

6Follow-up questions

Is there a target number of services per team?

There is no universal number, but a team should be able to know every one of its services well enough to debug it at night. In practice that is often somewhere between one and five services for a team of six to eight people. If a team cannot say what each of its services does without looking it up, it owns too many.

What if two services that change together are owned by different teams?

Then either the boundary or the team structure is wrong. Usually we move the capability to one team and merge the services there. If the organisation intends the two teams to work separately, we redesign the boundary so the frequent changes fall on one side, for example by moving a shared rule into one service.

How do you avoid swinging to the other extreme and building a new monolith?

We merge only along the evidence, one cluster at a time, and keep services separate where they have a real reason: a different scaling profile, a different team, or a different release cadence. Inside merged services we keep clear modules, so they can be split again later if the reasons change.

7Conclusion

In this answer, we saw that too many tiny services multiply failure probability, latency and operational load. We assessed the decomposition with tracing data, change history and ownership, merged services that change together or only forward calls, aligned services with teams, replaced long synchronous chains with events and local copies where consistency allows, and made consolidation a normal, reviewed change measured by clear numbers.

What to say in the interviewAbout 90 seconds aloud

Open with

With 300 services for 25 teams, each team runs about twelve services, and chains of eight synchronous calls multiply both latency and failure: eight services at 99.9 percent give roughly 99.2 percent for the chain.

Then, if they want more

So I would start with evidence rather than opinions. From distributed tracing I would map the real call chains per request and see which ones appear in incidents. From version control and deployment history I would find services that change together for the same tickets, and I would overlay team ownership from the service catalogue. That gives me clusters.

Services that always change together, or that only forward calls without owning data or rules, are merge candidates, and so are groups of tiny services owned by one team.

Where a service sits in a chain only to provide reference data, I would replace the call with a local copy updated by events, as long as the business can accept a few seconds of lag. I would align what remains with team ownership so each team runs a manageable number of services.

And I would make consolidation a normal change with a short proposal, a measurable goal like fewer hops in checkout, and review, so teams are not embarrassed to merge. Then I would track chain depth, services per team and incident counts to prove it worked.

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.
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 "An organisation has 300 microservices for 25 teams, many with one or two endpoints, and...": https://scrivio-interview-library.netlify.app/spring-boot/microservice-design/a40aeb942a/