System boundaries
Deciding where one component or service ends and another begins.
Boundaries define what each part owns and how parts talk to each other. Good boundaries follow the domain and change rarely. Bad ones, often drawn too early, create constant cross-service coordination.
Why it matters for a product engineer
A boundary decides what each part of a system owns and how the parts talk to each other. Good boundaries follow the product and its domain, so they rarely change. Bad ones, often drawn too early, make every feature a negotiation between services. Engineers draw most boundaries while building, often without noticing.
How to do it
- Draw a boundary where the responsibility changes, not where the code is large.
- Ask what really needs a server, a database or a separate team, and keep the rest simple.
- Define what crosses the boundary: an API, an event or an exported file, with an owner and a version.
- Keep data private to the side that owns it. The other side asks for it through the interface.
- Start inside one application. Move a part out only when its boundary has stayed stable.
- Check how often a change crosses a boundary. If it is most changes, the line is in the wrong place.
Common mistakes
- One service per database table.
- Two services that read and write the same tables.
- Boundaries copied from the organisation chart instead of from the product.
- No written contract, so each side guesses what the other sends.
Example
This site is mostly static: every page is HTML built in advance, and readers without an account never call a server. Only three things need one: accounts, synced progress and an MCP server for agents. They live in a small separate API, and the web server sends it only those paths. The skills content reaches the API as one exported file, so the two sides can change separately.
Where this site needs a server, and where it does not
The line follows what needs a server. Content reaches the API as one exported file (the dashed line), so the API never reads the site's source.
Observedproductengineer.pro, the API notes and deploy setup, Nov 2026
Sources: Bounded context (Martin Fowler) ↗ · Monolith first (Martin Fowler) ↗
Resources
2- articleStart here
Monolith first ↗
Martin Fowler · 2015 · 6 minWhy most successful systems start as one well-structured application and split only when boundaries are clear.
- articleGo deeper
Bounded context ↗
Martin Fowler · 3 minThe same word can mean different things in different parts of a business; this is how to draw those lines.