Finding microservice boundaries from business capabilities and bounded contexts, using data and team ownership, testing a boundary with change and call patterns, and recognising a wrong boundary.
Start from business capabilities (ordering, pricing, payments, fulfilment) and bounded contexts, the areas where a word like "Order" has one consistent meaning. A good boundary has one owner for its data and one owning team, and by Conway's law it should match how teams communicate. Test a proposed boundary with real change history and call flows: most features should change one service, and a user request should need few synchronous hops. Wrong boundaries show up as changes that always span services, chatty calls and shared tables. The trade-off: smaller services give more autonomy but more coordination, so start coarse and split when the seam is proven.
"I start from what the business does, not from the database. I list the business capabilities, for example quoting, policy administration, billing and claims for an insurer, and then look for bounded contexts: places where a word means one thing. 'Policy' in sales is a quote with a price; in claims it's a set of cover limits on a date. When the same word means different things to different people, that's usually a seam.
Then I check ownership. Each candidate service must own its data outright: no other service writes its tables. And each should have one owning team, because boundaries that cut across teams create coordination meetings, and Conway's law says the system will end up shaped like the communication anyway. Finally I test the boundary against reality: I look at the last few months of pull requests and ask how many would have touched more than one service, and I sketch the main user journeys to count synchronous hops. If checkout needs five services to answer in sequence, the boundary is wrong or that data should be replicated.
The mistake I see is splitting by entity, so you get a Customer service, an Order service and a Product service, and every feature needs all three to change together. My rule: draw boundaries around behaviour and data that change together, start coarse, and split later when the seam has proven itself."
| Source | Question to ask | Example |
|---|---|---|
| Business capability | What does the business do, independent of how? | Billing, Claims |
| Bounded context | Where does a term have one meaning? | "Policy" in Sales vs Claims |
| Data ownership | Who is the single writer of this data? | Billing owns invoices |
| Team ownership | Which team will run it and be on call? | Payments team |
| Change cadence | Which parts change together? | Pricing rules change weekly, invoices rarely |
| Non-functional needs | Different scale, security or compliance? | Card data in a PCI-scoped service |
| Test | Good sign | Bad sign |
|---|---|---|
| Change history (last 3–6 months of PRs) | >80% touch one service | Most features touch 2–3 services |
| Request flow | 0–2 synchronous hops per user request | Long sync chains, fan-out to many services |
| Data | One writer per table | Two services update the same rows |
| Consistency | Eventual consistency acceptable between services | Needs an atomic transaction across them |
| Language | Clear, stable vocabulary | Constant translation and arguments about meaning |
In a [retail] system, splitting by entity produced Product, Price and Stock services; 70% of feature PRs touched all three and the product page made 9 sequential calls (~140 ms p95). Merging them into a Catalogue service and publishing PriceChanged events to the few consumers cut cross-service PRs to under 15% and the page to 2 calls (~35 ms).
Checks whether the candidate can find boundaries from the domain and organisation, and can tell when a boundary is wrong.
Green flags
Red flags
A business capability is something the business does that would still exist if you changed all the software: taking orders, invoicing, handling claims. Capabilities are stable over years, which is what you want for an expensive boundary. Technical layers and entities are not: "Customer" is touched by almost every capability.
From Domain-Driven Design: a bounded context is a boundary inside which a model and its language are consistent.
+-------------- Sales --------------+ +------------- Claims -------------+
| Policy = quote, premium, discount | | Policy = cover limits, excess, |
| Customer = lead, contact details | | effective dates |
+-----------------------------------+ | Customer = claimant, bank details |
| +----------------------------------+
| PolicyIssued (event: policyId, cover, dates)
+------------------------------------------>
Each context keeps its own model of "Policy" and they exchange only what the other needs. A bounded context is a strong candidate for a service, but one context may contain several services, and a small context may share a service with another.
The hard rule: one writer per piece of data. Other services get the data through an API, through events they store locally (a read model), or through a reporting copy. Shared writes recreate the monolith's coupling with network costs on top.
"Organisations design systems that mirror their communication structure." If two teams must coordinate every change, the boundary between their services is wrong, or the teams are. The inverse Conway manoeuvre shapes teams to match the architecture you want. Team Topologies calls these stream-aligned teams.
Too coarse: teams block each other in one deployable. Too fine: distributed monolith, chatty calls, sagas everywhere. Heuristics:
A workshop technique: domain experts and engineers place domain events ("Order placed", "Payment captured") on a timeline, then group them. Clusters with their own language and few links become candidate contexts. It's fast and exposes disagreements early.
Each context keeps its own model and only shares an integration event with the fields others need.
namespace Sales.Domain
{
// Sales' view of a policy: pricing concerns.
public sealed record Quote(Guid PolicyId, decimal Premium, decimal Discount, DateOnly ValidUntil);
}
namespace Claims.Domain
{
// Claims' view of the same policy: cover concerns. Different model, same id.
public sealed record CoveredPolicy(Guid PolicyId, decimal CoverLimit, decimal Excess, DateOnly From, DateOnly To);
}
namespace Contracts.Events
{
// The integration event: a published contract, owned by Sales, versioned with care.
public sealed record PolicyIssued(Guid PolicyId, decimal CoverLimit, decimal Excess, DateOnly From, DateOnly To);
}
// An architecture test that keeps the boundary: Claims may depend on the contract, never on Sales internals.
[Fact]
public void Claims_does_not_reference_sales_domain()
{
var result = Types.InAssembly(typeof(Claims.Domain.CoveredPolicy).Assembly)
.ShouldNot().HaveDependencyOn("Sales.Domain")
.GetResult();
Assert.True(result.IsSuccessful);
}
The senior move is to validate boundaries with evidence, change history, call graphs and team structure, rather than whiteboard intuition, and to treat boundaries as a decision you can revisit. Merging two services is a legitimate fix, not a failure.
| Boundary approach | When it fits | Cost | When not to |
|---|---|---|---|
| Business capability | Stable, well-understood business | Needs domain knowledge | Very early product still pivoting |
| Bounded context (DDD) | Complex domain with clear language splits | Workshops, modelling time | Simple CRUD domain |
| Team-first (inverse Conway) | Org is restructuring anyway | Organisational change | Teams are fixed and unrelated to domain |
| Entity-based | Almost never | Chatty, coupled services | — |
Track the result: percentage of PRs touching more than one service, synchronous hops per journey, and coordinated deployments per month.
A bounded context is the boundary within which one model and one language apply consistently. You find its edges where the language changes (the same word means different things), where different experts or stakeholders own the rules, and where parts of the domain change for different reasons and at different rates (tax rules yearly, catalogue daily), because those parts need models that can evolve separately. Each context usually maps to one team and one module or service. Contexts still have to work together, so you draw a context map of how they integrate (customer-supplier, anti-corruption layer, published events) and keep each context's data private behind those integrations.
Data ownership means each piece of data has one owner, a module or service, that is the only one allowed to write it and enforce its invariants. Everyone else either asks the owner (API), subscribes to its events, or keeps a read-only local copy.
In microservices that usually means database per service; in a modular monolith it means schema per module with its own DbContext, and no cross-module joins.
Shared writes are the thing to avoid: two services updating the same table means nobody owns the rules and every schema change is a coordinated release. For reporting, I ship data to a separate analytical store instead of joining live databases.
The trade-off is duplication and eventual consistency: copies lag the owner, so you design for staleness and synchronise with an outbox.
Conway's law: systems mirror the communication structure of the organisation that builds them. If two teams share a service, its internals split along team lines; if one change needs three teams, it needs three meetings and three release trains.
The trade-off: aligning teams to services reduces coordination but can duplicate effort, so platform teams absorb the shared parts.
How to tell it (STAR)
**S:** At [company], our product data was split into three services by entity, owned by [three] teams, and almost every feature touched all of them. **T:** I was asked to find out why delivery was slow and propose a fix. **A:** I tagged six months of PRs by service, pulled the application map from Application Insights to see the call chains, and ran an event storming session with the product owners. The data showed 70% of changes crossed all three services. I proposed merging them into one Catalogue service and keeping stock reservation separate, and wrote it up as an ADR. **R:** Cross-service PRs dropped from [70%] to [under 15%], the product page went from 9 calls to 2, and we stopped needing coordinated release windows.
Last updated 23 Nov 2026.