Quick revision
The short answer
These are the symptoms of a distributed monolith: services deployed separately but coupled so tightly that they behave like one system with network calls in between. The likely causes are a shared database or shared domain model libraries, chatty synchronous APIs, and boundaries cut by technical layer rather than business capability. We fix it by merging services that always change together, replacing synchronous chains with asynchronous events or local data copies where consistency rules allow, versioning APIs and events with contract tests, and giving each service its own data store.
What to remember
In this answer, we diagnosed services that must be deployed together, a seven-call synchronous chain and schema changes that break neighbours as a distributed monolith. We traced the symptoms to a shared database and shared model libraries, chatty synchronous APIs and boundaries cut by technical layer, confirmed them with tracing and history, and fixed them by merging services that always change together, using events and local copies where consistency allows, versioning APIs and events with contract tests, and giving each service its own data store.
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.
These are the symptoms of a distributed monolith: services deployed separately but coupled so tightly that they behave like one system with network calls in between. The likely causes are a shared database or shared domain model libraries, chatty synchronous APIs, and boundaries cut by technical layer rather than business capability. We fix it by merging services that always change together, replacing synchronous chains with asynchronous events or local data copies where consistency rules allow, versioning APIs and events with contract tests, and giving each service its own data store.
Why this question is asked
A distributed monolith is the most common outcome of a microservices migration that went wrong. It has all the costs of distribution, network latency, partial failures, many pipelines, and none of the benefits, because nothing can change or be released alone. The three symptoms in the question are classic, and each points at a specific kind of coupling. Interviewers ask this debugging question to see whether we can trace symptoms to causes and propose changes in a sensible order. In this answer, we will name the pattern, connect each symptom to its causes, investigate with real data, and then work through the fixes.
1Naming the Pattern
Microservices are meant to be independently deployable: a team can change and release its service without coordinating with others. When services must be deployed together, when one request depends on a long chain of them being up, and when a change in one breaks others, that independence is gone. The system is still a monolith in its coupling, only now spread over the network. This is what people call a distributed monolith.
It is worse than a real monolith in several ways. A method call that took microseconds now takes milliseconds and can time out. A refactoring across services needs coordinated releases. And the availability of a request is the product of the availability of every service in the chain.
2Tracing Each Symptom to Its Cause
Services that must be deployed together usually share something that changes. The most common shared thing is a database: two or more services read and write the same tables, so a schema change needs all of them updated at once. The second is a shared domain model library, for example an acme-model.jar with Order and Customer classes used by every service; when it changes, every service must upgrade, and services with different versions misunderstand each other's messages.
A chain of seven synchronous calls points at chatty APIs and boundaries cut the wrong way. Often the services were cut by technical layer, such as an order API service, an order logic service and an order data service, so one business action has to pass through all of them. Or a service needs data owned by others and fetches it on every request instead of keeping a local copy.
A schema change that breaks three others means there is no contract discipline: either the services share the schema directly, or they consume each other's APIs without versioning and without tests that would have caught the break.
8 messages in order. Play them, or step through them one at a time.
Availability multiplies: seven services at 99.9 percent give about 99.3 percent for the request.
3Investigating With Data
Before changing anything, we confirm the causes. Distributed tracing, for example with OpenTelemetry, shows the actual call graph of the slow request and which services are on its critical path. The deployment history shows which services are always released in the same window. The version history shows which repositories change in the same week for the same tickets. And a look at database connection settings shows which services connect to the same schema.
The availability arithmetic is worth stating, because it convinces people: if each of seven services is available 99.9 percent of the time, a request that needs all of them is available about 0.999 to the power of 7, roughly 99.3 percent, which is about five hours of failure a month instead of 45 minutes.
4Fix 1: Merge Services That Always Change Together
If the order API, order logic and order data services always change together and are owned by one team, they are one service split by layer. The fastest improvement is to merge them into one service with clean internal layering. That removes two network hops from the chain, removes coordinated releases for that group, and costs very little, because they were never really independent. It may feel like going backwards, but it moves the system towards boundaries that match business capabilities.
5Fix 2: Replace Synchronous Chains With Events or Local Copies
Next we look at each remaining synchronous call and ask whether the caller needs the answer from the owner right now. Often it does not. The order service does not need to call the customer service for the customer's tier on every order; it can keep a local copy of the few fields it needs, updated from CustomerUpdated events. Pricing can work the same way with product prices.
Where the business allows it, follow-up work becomes asynchronous: instead of calling notification and loyalty services inside the order request, the order service publishes OrderPlaced and those services react. The consistency rules decide where this is allowed: a stock reservation may need a synchronous answer, while sending a confirmation email does not.
6Fix 3: Contracts, Versioning and Separate Data Stores
To stop schema changes breaking other services, every interface becomes an explicit, versioned contract. APIs are described with OpenAPI and evolved compatibly: new fields are added, old ones are removed only after a deprecation period, and breaking changes get a new version. Events have schemas in a registry with compatibility checks. Consumer-driven contract tests, for example with Spring Cloud Contract or Pact, run in the provider's build and fail when a change would break a known consumer.
Finally, each service gets its own data store, or at least its own schema that no other service connects to. This is the most work, because it needs data migration and replacing cross-service joins with APIs or local copies, so we do it service by service, starting with the tables that cause the most coordinated releases. Shared model libraries go too: each service defines its own classes for the data it receives, generated from the contract if useful.
| Symptom | Likely cause | Change |
|---|---|---|
| Must deploy together | shared database, shared model jar | own data store, own model classes |
| Seven synchronous hops | layer-cut services, chatty APIs | merge layers, events, local copies |
| Schema change breaks three services | no contracts or versioning | versioned APIs and events, contract tests |
7Follow-up questions
How do you decide whether to merge or to keep services separate?
We look at change and ownership data. If two services are owned by the same team and almost every change touches both, they should be one. If they are owned by different teams with different release needs and the coupling comes from a shared table or chatty calls, we keep them separate and fix the coupling instead.
Doesn't keeping local copies of data cause inconsistency?
It causes staleness for a short time, usually seconds, which is acceptable for most reads, such as a customer's tier for a discount. Where a decision must use the latest value, such as available stock, we keep a synchronous call or a reservation protocol. The choice is made per piece of data, based on the business rule.
What role does a shared library play in a healthy system?
Shared libraries for technical concerns, such as logging, tracing or security configuration, are fine because they do not carry business meaning between services. Shared libraries of domain classes are the problem, because they force every service to agree on one model and upgrade together.
8Conclusion
In this answer, we diagnosed services that must be deployed together, a seven-call synchronous chain and schema changes that break neighbours as a distributed monolith. We traced the symptoms to a shared database and shared model libraries, chatty synchronous APIs and boundaries cut by technical layer, confirmed them with tracing and history, and fixed them by merging services that always change together, using events and local copies where consistency allows, versioning APIs and events with contract tests, and giving each service its own data store.
Open with
These three symptoms together describe a distributed monolith: services that are deployed separately but coupled so tightly that they act like one system with network calls in between.
Then, if they want more
Having to deploy together usually means they share something that changes, most often a database schema or a shared library of domain classes.
A chain of seven synchronous calls usually means the services were cut by technical layer, like order API, order logic and order data, or that services fetch data they need on every request instead of owning a copy. And a schema change breaking three others means there are no real contracts.
I would confirm this with tracing to see the call graph, and with deployment and commit history to see which services always change together. Then I would fix it in order of cost. First, merge services that always change together and belong to one team, which removes hops and coordinated releases quickly.
Second, replace synchronous calls with events and local copies where the business allows staleness, like customer tier, and keep synchronous calls only where the latest value is required, like stock. Third, version APIs and events, use a schema registry and add consumer-driven contract tests so breaking changes fail the provider's build.
And step by step, give each service its own data store and remove shared domain libraries.
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 microservices must be deployed together, a single user request triggers a chain of...": https://scrivio-interview-library.netlify.app/java/application-architecture/076ce9bf25/