Quick revision
The short answer
A good service boundary wraps one business capability together with the data and rules that belong to it, so the service can change and deploy mostly on its own and one team can own it end to end. Two strong signs that an existing split is wrong are changes that always need coordinated releases of two services, and services that make chatty synchronous calls on every request or read each other's tables.
What to remember
In this answer, we saw that a good service boundary follows a business capability, keeps that capability's data and rules inside, lets the service deploy mostly on its own and lets one team own it end to end. We looked at two signs of a wrong split: releases that always have to be coordinated, and chatty synchronous calls or direct reads of another service's tables. Finally, we saw that size is not the target; cohesion inside a service and low coupling between services are.
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.
A good service boundary wraps one business capability together with the data and rules that belong to it, so the service can change and deploy mostly on its own and one team can own it end to end. Two strong signs that an existing split is wrong are changes that always need coordinated releases of two services, and services that make chatty synchronous calls on every request or read each other's tables.
Why this question is asked
Drawing service boundaries is the decision that most shapes how a microservice system feels to work on. Get it right and teams ship independently; get it wrong and we end up with a distributed system that still behaves like one tangled codebase, only slower and harder to debug. Interviewers ask this question because it shows whether we think of services as units of business responsibility or just as small pieces of code. In this answer, we will recap what a boundary is, look at what makes one good, walk through the two warning signs with an example, and see why size is the wrong thing to optimise.
1A Quick Recap: What Is a Service Boundary?
A service boundary is the line that decides what lives inside a service and what lives outside it. Inside are the code, the data and the business rules the service is responsible for. Outside are other services, which may only reach in through the service's public API (a REST endpoint, a gRPC method) or through the events it publishes (messages such as OrderPlaced put on a broker like Kafka).
The boundary matters because everything that crosses it becomes expensive. A method call inside a service takes nanoseconds and is covered by one transaction. The same call across a boundary becomes a network request that can time out, fail halfway or return stale data. So we want the things that change together and talk to each other constantly to sit on the same side of the line.
2What Makes a Boundary Good
The most reliable guide is a business capability: something the business does, such as taking payments, managing a catalogue or shipping orders. A capability comes with its own vocabulary, its own rules and its own data. A Payments service owns payment records, refund rules and the conversation with the card processor. Nobody else needs to know how a refund is calculated; they only need to ask for one.
When a service is built around a capability like this, most changes to that capability touch only that service. A new refund rule means a change in Payments, a test in Payments and a deployment of Payments, and nothing else moves. That is what we mean by deploying mostly on its own. The word mostly is honest: occasionally an API changes in a way other services must follow, but that should be the exception.
A good boundary also lines up with a team. If one team can own a service end to end, meaning they design it, build it, run it in production and answer its pager, then decisions inside the boundary are quick because one group makes them. If three teams share a service, every change becomes a negotiation, and the boundary no longer gives us speed.
| Question | Good boundary | Weak boundary |
|---|---|---|
| What does it own? | One capability, its rules and its tables | A technical layer or a single entity |
| Who changes it? | One team, end to end | Several teams in turn |
| How does it release? | Alone, most of the time | Together with neighbours |
| How do others reach it? | Its API or its events | Its database tables |
3Warning Sign 1: Releases That Always Move Together
Imagine an Orders service and a Pricing service. Every time the business adds a new discount type, Pricing needs a new calculation and Orders needs a new field to store it. Both teams prepare their changes, agree a date and deploy in a fixed order, because the new Orders code breaks if the new Pricing API is not there yet.
If this happens once, it is just a feature that crossed a boundary. If it happens for nearly every change, the two services are really one capability cut in half. The cost is real: coordinated releases need meetings, a release plan and a rollback plan for two systems, and a problem in either deployment blocks both. A quick way to see this is to look at the change history: if 80 percent of the commits in Orders over the last six months came with a matching change in Pricing, the boundary is in the wrong place, and merging the two, or moving the discount logic entirely into one of them, is usually the fix.
4Warning Sign 2: Chatty Calls and Borrowed Tables
The second sign shows up at runtime. Suppose every call to GET /orders/{id} makes Orders call Customers for the name, Pricing for the totals and Catalogue for each product title, one request after another. The order page cannot be built without three other services answering, so the services are not independent at all; they just pass data over the network that used to be a join.
The quieter version of the same problem is one service reading another's tables directly. It is tempting because it is fast to write: Reporting simply runs a SELECT against the Orders database. But now the Orders team cannot rename a column without breaking Reporting, and they may not even know Reporting exists. The table has become a hidden API with no version and no owner.
Notice that none of these calls exist because the business needs four services; they exist because the data was split in a way the page does not respect. The usual repairs are to keep a local copy of the few fields Orders needs (customer name, product title) updated by events, or to move the data into the service that uses it most.
5Why Size Is Not the Goal
The word micro misleads many teams into thinking smaller is better. It is not. What we want is high cohesion, meaning the things inside a service belong together and change for the same reasons, and low coupling, meaning a service depends on others as little as possible. A service with forty endpoints can be perfectly healthy if they all serve one capability. Ten services with two endpoints each can be a disaster if every request crosses all ten.
So when someone asks whether a service is too big, a better question is whether it has more than one reason to change and more than one team fighting over it. If yes, split along the capability line. If no, leave it alone, however many lines of code it has.
6Follow-up questions
How do you find business capabilities in practice?
We talk to the business people and listen for the nouns and verbs they use, then group them by who is responsible for them. Event storming, a workshop where people put domain events such as OrderPlaced or PaymentRefunded on a wall and group them, works well. Each cluster of events with its own rules and its own language is a candidate capability, and its edges are candidate boundaries.
Is it ever acceptable for two services to share data?
They can share information, but not ownership. One service owns the data and the other receives a copy through an API call or an event, and treats that copy as read-only. What we avoid is two services writing to the same table or reading each other's tables directly, because then neither can change its schema safely.
What would you do first if you found both warning signs in one pair of services?
I would look at the change history and the call traces to confirm that the two services change together and talk on every request. If both are true, merging them is often cheaper than inventing a cleaner split, and it can be done gradually by moving one service's code into the other behind the same API.
7Conclusion
In this answer, we saw that a good service boundary follows a business capability, keeps that capability's data and rules inside, lets the service deploy mostly on its own and lets one team own it end to end. We looked at two signs of a wrong split: releases that always have to be coordinated, and chatty synchronous calls or direct reads of another service's tables. Finally, we saw that size is not the target; cohesion inside a service and low coupling between services are.
Open with
For me a good service boundary follows a business capability, something like payments or shipping, and the service owns the data and the rules that belong to it.
Then, if they want more
Other services only reach it through its API or its events. If the boundary is right, most changes to that capability touch only that service, so it can be deployed on its own, and one team can own it end to end, from design to on-call. Two signs tell me an existing split is wrong.
The first is when two services almost always have to be released together; if every new feature needs a matching change and a coordinated deployment in both, they are really one capability cut in half, and I would check the commit history to confirm it.
The second is runtime coupling: a service that makes a chain of synchronous calls to others on every request just to build one response, or a service that reads another service's tables directly. Both mean the data was split in a way the work does not respect. I would also add that size is not the goal.
A large service that is cohesive is fine; what I aim for is high cohesion inside and low coupling between services, and sometimes the fix for a bad split is to merge rather than to split further.
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 "What makes a good service boundary? Give two signs that an existing split between...": https://scrivio-interview-library.netlify.app/spring-boot/microservice-design/4ef50e4b03/