Module 5
Map the Domain
What must your data answer, and what have you promised the teams that build on it?
If you only do one thing: Write three to five questions your data must answer, and what each team that uses it is counting on.
Last time
Two questions on Module 4: Mind the Seams. Answer in your head, then check.
Why can’t “approved” mean one thing to every team on a marketplace?
What makes an internal platform worth choosing, and not only required?
Why this matters
Some of what you build is for other teams: an API their products call, or a dataset their reports read. In Module 4: Mind the Seams you heard a boundary in how people talk. Here the boundary is written down, in an API’s fields and a dataset’s columns, and other teams build on it. Picture a weather data API: farm apps call it for rain, airlines for storms, delivery firms for ice on the roads, and each has made promises of its own on top of yours. To map the domain is to map what its data must answer, and what you’ve promised the teams who ask. If you own no API, read this module from the other side: your app calls someone’s, and their promises are the ones your product stands on.
The API’s shape follows the questions people will ask of it. Each one, with who asks it, how often, how fast, and how fresh, is an access pattern. You often know these questions better than the engineers, because they come from customers, consumers, support, operations, and finance, and you hear them first. Fresher answers cost more, so ask what decision each one feeds: a delivery firm wants this minute’s road temperature, while an insurer is happy with last month’s.
Most of the people asking never read the original. Reports, caches, and other teams work from copies of the system of record, where the data is first written and corrected. Each copy can fall behind or go wrong on its own, which is why two reports can disagree.
Zhamak Dehghani’s case is that the teams who read your data are its customers, so it needs an owner and a promise about its quality, such as how fresh it is. An API is the same kind of promise, and a stricter one. Callers build on what it does, beyond what you documented, so retiring an old version is a product decision with a price on both sides.
The short path
-
Access Patterns
Look for: The four things to write down about every question, and why freshness has a price.
-
Zhamak Dehghani, “How to Move Beyond a Monolithic Data Lake to a Distributed Data Mesh”
Look for: Her case that the teams who read your data are its customers, and her line “No one will use a product that they can’t trust.”
Why this source
- Why trust it
- An argument. Dehghani wrote it as a consultant at Thoughtworks, from data platforms she’d seen clients build, and data mesh as a whole is still debated.
- What you’ll get
- Data as a product at its source, in the part a PM needs most.
-
An API Is a Promise
Look for: Why callers count on more than you wrote down, and what retiring a version costs on both sides.
-
Brandur Leach, “APIs as infrastructure: future-proofing Stripe with versioning”
Look for: Why Stripe compares itself to a power company that “shouldn’t change its voltage every two years,” and how it keeps old versions working.
Why this source
- Why trust it
- Experience. An engineer on Stripe’s own API, making the case for his company’s choices. Stripe now ships two major releases a year and monthly ones that break nothing, so read it as its 2017 scheme.
- What you’ll get
- One company’s account of what keeping its promise costs, concrete enough to follow without the code.
-
Map the questions and the promises
Look for: Which question your design answers worst, and what its caller is counting on.
-
Check yourself
Look for: Whose call a late reading is, and what callers count on that nobody wrote down.
Do
Write the access patterns (25 minutes). Pick the API or dataset you work nearest. On a consumer app, that’s the API your own app calls or the events it logs. List three to five questions its data must answer, each with who asks, how often, how fast (how long they’ll wait), and how fresh (how old the answer may be). Then add what each caller counts on: what breaks for them if the answer is late or wrong, written down or not. Mark the row the design answers worst. Outside the 25 minutes, ask your tech lead: “Which of these does our design answer well, and which would be expensive?”
For your decision log. Pick a question a caller wants fresher, or the one you marked worst. Write what you’d trade to make it fresher, what you expect it to change for them, how sure you are, and when you’ll know. If the trade isn’t yours, write what staying stale costs them.
What a good one looks like
Try yours first. Judgment comes from trying, then calibrating against an example.
Is there ice ahead? Delivery firms ask all day, and a driver waits under a second. The answer can be a minute old. If it’s late, a van skids.
Is a storm coming? Airlines poll every 5 minutes and wait a few seconds. They need it a minute old, but polling leaves it up to 5 minutes stale, so what breaks is a late diversion. This is the row the design answers worst.
How much rain this season? Farm apps ask nightly, and can wait minutes for an answer that’s fresh by morning. Their charts break if the readings come back in a new order, which nobody wrote down.
Decision log:
- Question: storm alerts.
- Trade: a push service, a quarter’s work.
- Expected change: airlines divert sooner.
- Confidence: 60%, because two airlines can’t receive pushes.
- Know by: March, from how soon airlines divert after an alert.
What makes it good:
- Every row answers the same four things, then says what a miss costs the caller, even where nothing was written down.
- It marks the question the design answers worst, and the log prices a fix for it, with a date to check.
- It stops at three questions, each from a different caller, so the worst one stands out.
Optional: trace one piece of data (15 minutes). Pick one thing your data holds, such as a station’s hourly rain. Find its system of record, where it’s first written and where corrections land. List every copy you know of, in reports, caches, or other teams’ systems, and who depends on each. For the copy most likely to go wrong, ask who would notice first, and who would fix it.
Optional: read one design doc (15 minutes). Find the design doc or decision record behind that data, where engineers wrote down what they chose and why. Read its summary and decisions for what it promises callers and what it trades away, and write down one question it leaves open. Outside the 15 minutes, take your question to the doc’s author, and ask your tech lead if you can sit in on the next design review, to listen and answer questions about callers. If there’s no doc, ask your tech lead where it was decided.
To bring to engineers
Bring the access patterns you wrote. You heard most of those questions first.
- How long after a change does each copy of this data catch up?
- Who calls this API, by version, and how would we know if one of them stopped?
- What do our callers rely on that we never wrote down?
- What’s our freshness target for this data, how do we measure it, and who hears when we miss it?
Check yourself
Answer in your head, then check.
A weather station records Friday’s rain, but its connection is down until Monday. Which day’s total does the reading count in, and whose call is it?
Your team changes the order of the hourly readings in a response, which the documentation never promised. A farm app breaks. Whose problem is it?
Yours as much as theirs. With enough callers, every behavior they can see gets depended on, which is Hyrum’s Law. Next time, count who calls it and tell them first. Then either promise the order, or vary it on purpose so nobody relies on it.
In Module 1: Know Who It’s For, your customers paid for waiting. Here your callers pay for your changes. A farm app still calls version 1 of your forecast, and keeping it alive costs your team a week’s work every month. When do you switch it off?
Beyond this module. Your table lists what your callers count on. What does your own API count on that you don’t control?
Go deeper: the full path
Optional, and not counted in the time above.
If you read one: Designing Data-Intensive Applications. It’s the book many of your engineers will have read, so it gives you their words.
-
Designing Data-Intensive Applications, Martin Kleppmann and Chris Riccomini
Read the parts on operational against analytical systems and on systems of record and derived data, then the two chapters on batch and stream processing.
Why this source
- Why trust it
- Experience. Kleppmann built large-scale data infrastructure at LinkedIn before becoming a professor at Cambridge.
- What you’ll get
- The whole picture of where data lives and how it moves, and what each choice trades away.
-
Continuous API Management, Mehdi Medjaoui, Erik Wilde, Ronnie Mitra, and Mike Amundsen
Free at f5.com. NGINX, part of F5, sponsored it. Read chapters 3, “The API as a Product,” 5, “Continuous API Improvement,” and 7, “The API Product Lifecycle.”
Why this source
- Why trust it
- Experience. Four consultants on running APIs. Wilde wrote the Sunset header, the web’s way of telling callers an API will be switched off.
- What you’ll get
- Running an API as a product across its whole life, from a caller’s first try to its retirement, with what to measure at each stage.
-
Domain-Driven Design, Eric Evans
Read chapters 14, “Maintaining Model Integrity,” and 15, “Distillation.”
Why this source
- Why trust it
- Experience. It’s where bounded contexts and the core domain start. This one’s target audience is architects, but I think the work required to navigate it as a PM pays for itself in time, especially as agentic workflows become more common and effective domain context management becomes an even greater factor in performance.
- What you’ll get
- Where to draw the lines between models, and where to spend. Keep the core, the part that sets your product apart, small. Think about buying the generic parts everyone needs, such as login.
-
Data Mesh, Zhamak Dehghani
Read chapter 3, “Principle of Data as a Product.”
Why this source
- Why trust it
- An argument. Dehghani set out data mesh at Thoughtworks, an approach in which each part of a business owns and serves its own analytical data. This is her case for it.
- What you’ll get
- What it takes to run a dataset as a product, with an owner measured on its quality and on how satisfied its users are.
-
Brazil, directed by Terry Gilliam, written by Gilliam, Tom Stoppard, and Charles McKeown (Universal, 1985)
A beetle falls into a teleprinter, an arrest warrant for Tuttle comes out as Buttle, and the state pursues and arrests the wrong man. The entire thing is a story of what happens when indifference leads to bureaucratic dystopia.
Why this source
- What you’ll get
- A dark satire of the system of record. Every department downstream builds on a record it never checks.
Answers
Last time
- Each team’s work turns on a different fact. To one it means a listing passed review, and to another that the seller can be paid. Give each bounded context its own consistent model, and make the translation between contexts explicit, with someone who owns it.
- It’s run as a product, for the teams that use it. In Bottcher’s words, it’s “a foundation of self-service APIs, tools, services, knowledge and support,” and good enough that those teams would pick it.
Check yourself
- By event time it’s Friday’s, and by processing time Monday’s. A farm checking last week’s rain wants Friday, so it’s a product call as much as an engineering one. Say which you promise, and when a day’s total is final.
- Yours as much as theirs. With enough callers, every behavior they can see gets depended on, which is Hyrum’s Law. Next time, count who calls it and tell them first. Then either promise the order, or vary it on purpose so nobody relies on it. Sidenote: Story time: At one startup, I was responsible for the support department and we did a wholesale replacement of our user knowledge base. Our localization teams had an undocumented trigger tied to its fields, so our update erased the knowledge base for roughly twenty languages. It took our translators a full month to get everything back, and another six before I was back in their good graces.
- Sooner if the waiting costs more, later if the move does. The week a month that version 1 takes is a week your other customers wait, the cost Module 1: Know Who It’s For had you price. Each week of notice you cut costs the farm app, which didn’t choose to move. Set a date far enough out for them to plan, and keep it, since a date that slips teaches callers to wait. If the call isn’t yours, list who still calls version 1, check what notice your terms promise, and bring a draft date to whoever owns the API.
- The public weather services its data starts from. In 2025 the US National Weather Service cut weather balloon launches, whose data it says “support weather modeling and forecasting,” at some sites for lack of staff, and NOAA retired its database of billion-dollar disasters. Some launches have since come back. The same holds for a cloud region or a vendor’s API. Your promise can’t be stronger than the ones you were given, so write down which of yours rests on whose. The Compass gathers the questions to carry to any call that touches data.
Why these sources
Zhamak Dehghani, “How to Move Beyond a Monolithic Data Lake to a Distributed Data Mesh”
- Why trust it
- An argument. Dehghani wrote it as a consultant at Thoughtworks, from data platforms she’d seen clients build, and data mesh as a whole is still debated.
- What you’ll get
- Data as a product at its source, in the part a PM needs most.
Brandur Leach, “APIs as infrastructure: future-proofing Stripe with versioning”
- Why trust it
- Experience. An engineer on Stripe’s own API, making the case for his company’s choices. Stripe now ships two major releases a year and monthly ones that break nothing, so read it as its 2017 scheme.
- What you’ll get
- One company’s account of what keeping its promise costs, concrete enough to follow without the code.
Designing Data-Intensive Applications, Martin Kleppmann and Chris Riccomini
- Why trust it
- Experience. Kleppmann built large-scale data infrastructure at LinkedIn before becoming a professor at Cambridge.
- What you’ll get
- The whole picture of where data lives and how it moves, and what each choice trades away.
Continuous API Management, Mehdi Medjaoui, Erik Wilde, Ronnie Mitra, and Mike Amundsen
- Why trust it
- Experience. Four consultants on running APIs. Wilde wrote the Sunset header, the web’s way of telling callers an API will be switched off.
- What you’ll get
- Running an API as a product across its whole life, from a caller’s first try to its retirement, with what to measure at each stage.
Domain-Driven Design, Eric Evans
- Why trust it
- Experience. It’s where bounded contexts and the core domain start. This one’s target audience is architects, but I think the work required to navigate it as a PM pays for itself in time, especially as agentic workflows become more common and effective domain context management becomes an even greater factor in performance.
- What you’ll get
- Where to draw the lines between models, and where to spend. Keep the core, the part that sets your product apart, small. Think about buying the generic parts everyone needs, such as login.
Data Mesh, Zhamak Dehghani
- Why trust it
- An argument. Dehghani set out data mesh at Thoughtworks, an approach in which each part of a business owns and serves its own analytical data. This is her case for it.
- What you’ll get
- What it takes to run a dataset as a product, with an owner measured on its quality and on how satisfied its users are.
Brazil, directed by Terry Gilliam, written by Gilliam, Tom Stoppard, and Charles McKeown (Universal, 1985)
- What you’ll get
- A dark satire of the system of record. Every department downstream builds on a record it never checks.