Joe Stanley

Module 5

Map the Domain

What must your data answer, and what have you promised the teams that build on it?

Takes about an hour, plus about 20 minutes for this page.

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?
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.
What makes an internal platform worth choosing, and not only required?
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.

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

  1. Access Patterns

    5 minutes. A concept card, one page.

    Look for: The four things to write down about every question, and why freshness has a price.

  2. Zhamak Dehghani, “How to Move Beyond a Monolithic Data Lake to a Distributed Data Mesh”

    10 minutes. An article from 2019. Read its part “Domain data as a product.” Free at martinfowler.com.

    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.
  3. An API Is a Promise

    5 minutes. A concept card, one page.

    Look for: Why callers count on more than you wrote down, and what retiring a version costs on both sides.

  4. Brandur Leach, “APIs as infrastructure: future-proofing Stripe with versioning”

    15 minutes. A blog post from 2017. Free at stripe.com.

    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.
  5. Map the questions and the promises

    The Do, on this page, below. Talking to your tech lead can come later.

    Look for: Which question your design answers worst, and what its caller is counting on.

  6. Check yourself

    The Check, on this page, below.

    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

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?
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.
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?
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.
Beyond this module. Your table lists what your callers count on. What does your own API count on that you don’t control?
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.

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

    A book.

    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

    A book.

    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

    A book.

    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

    A book.

    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 classic film.

    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.

Access pattern

A question a system’s data has to answer, with who asks it, how often, how fast, and how fresh.

In the glossary

Advice process

Anyone may make a decision, after asking the people it affects and people with relevant expertise. They don’t have to follow the advice, but they have to seek it out and write it down.

In the glossary

Bounded context

An area of a business or a system inside which each word and model has one agreed meaning.

In the glossary

Cognitive load

How much someone has to know to make a change safely. Team Topologies uses it for how much a team has to hold in its head.

In the glossary

Commander’s intent

The why given with a task, so people can still act when the task goes stale. From military doctrine.

In the glossary

Complexity

In John Ousterhout’s sense, anything in a system’s structure that makes it hard to understand and change. Its symptoms are change amplification, cognitive load, and unknown unknowns.

In the glossary

Conceptual integrity

Fred Brooks’s name for a product that reflects one set of design ideas, so its parts belong together.

In the glossary

Conjoint analysis

A survey method from market research. People choose among, rank, or rate versions of a product that differ in features and price, and their answers show how much each feature is worth to them. Paul Green developed it for marketing.

In the glossary

Consequence scanning

A short team conversation, early in a product’s or a feature’s life, about everything it could cause, run on three questions from Doteveryone.

In the glossary

Constraint (bottleneck)

The one part of a system that limits what the whole system can deliver.

In the glossary

Conway’s Law

A system ends up shaped like the communication between the teams that build it. Melvin Conway made the point in 1968.

In the glossary

Cost of change

What it takes to change part of a product later, set mostly by the slowest layer the change touches.

In the glossary

Cost of delay

What a week of waiting costs, in the value you don’t get while the work isn’t done. It puts urgency and value in one number.

In the glossary

Coupling

How far a change to one part forces a change to another, judged for a particular change.

In the glossary

Data-informed

Using numbers and stories for what each can tell you, while the decision stays yours. Adam Mosseri set it against being data-driven in a 2010 talk.

In the glossary

Decision record

A short note of one significant decision, with its context, the decision, its status, and its consequences. Engineers call it an architecture decision record (ADR).

In the glossary

Deprecation

Announcing that part of an API or a dataset will be retired, and when, so its callers can move before a breaking change, one that stops their code working, removes it.

In the glossary

Discovery

The work of learning whether a problem is real, whose it is, and what solving it is worth, before and while you build.

In the glossary

Double-loop learning

Questioning a goal and the assumptions behind it, where single-loop learning only changes the actions that serve it.

In the glossary

Error analysis

Reading a sample of what a model got wrong, writing a line on each mistake, then sorting the mistakes into kinds and counting them, before you decide what to test or change.

In the glossary

Error budget

The amount of failure a service’s SLO allows, treated as a budget. While some is left, releases go ahead.

In the glossary

Event time and processing time

When something happened, and when the system saw it.

In the glossary

Fake door

A button or link for a feature that isn’t built yet, shown to some customers to count how many tap it. Those who do are told right away that it isn’t ready.

In the glossary

Feature toggle (feature flag)

A switch in the software that turns a feature on or off without changing the code.

In the glossary

Feedback loop

A chain of cause and effect that runs from the level of a stock back to one of its flows. A balancing loop pulls the stock toward a goal. A reinforcing loop pushes it further the way it is already going.

In the glossary

Glue work

Tanya Reilly’s name for the work that holds a team together and rarely gets anyone promoted.

In the glossary

Goodhart’s Law

“When a measure becomes a target, it ceases to be a good measure.” The wording is the anthropologist Marilyn Strathern’s, from 1997, for a point the economist Charles Goodhart made in 1975.

In the glossary

Guardrail metric

A measure that must not get worse while you try to move another. You agree in advance the level at which you’d stop.

In the glossary

Heavyweight product manager

From a study of car development. A lightweight product manager coordinates the work. A heavyweight also champions the product’s concept, what you’d call its vision, and answers for it.

In the glossary

Holdout

A group kept out of a change on purpose, so you can compare what happens with it and without it. Picked at random, and large enough, it shows what the change itself did.

In the glossary

Hyrum’s Law

With enough callers, every behavior of an API they can see will be depended on by someone, whatever its documentation promises. Named for Hyrum Wright, who saw it as an engineer at Google.

In the glossary

Interface

Where two parts of a system, or two teams, meet, and what each side promises the other there.

In the glossary

Intersectional

Looking at where two or more groups overlap, such as gender and skin type together, not at one at a time. Kimberlé Crenshaw named the idea in a 1989 paper.

In the glossary

Inverse Conway maneuver

Shaping teams, and how they talk to each other, on purpose, to get the system you want.

In the glossary

Job crafting

Reshaping your own job from the inside, by changing its tasks, your working relationships, or how you see its purpose. Amy Wrzesniewski and Jane Dutton named it in 2001.

In the glossary

Kernel of a strategy

Richard Rumelt’s name for the three parts a strategy needs: a diagnosis of what’s going on, a guiding policy for meeting it, and coherent actions that carry it out.

In the glossary

Ladder of inference

Chris Argyris’s model of how you climb from what you notice to what you conclude and do, usually without seeing the steps. Tellings count its rungs differently. Ed Batista’s has four, and the most commonly cited one has seven.

In the glossary

Last responsible moment

The moment when putting off a decision would close off an important option. Until then, waiting to learn more can cost less than deciding wrong. Past it, waiting makes the choice for you.

In the glossary

Law of small numbers

Amos Tversky and Daniel Kahneman’s name for the belief that a small sample will look like the whole population. Small samples swing more than anyone expects.

In the glossary

Left-hand column

An exercise from Chris Argyris and Donald Schön. Beside what was said in a conversation, you write what you thought and felt but didn’t say.

In the glossary

Leverage point

A place in a system where a small change can produce a large change in how the whole behaves. Donella Meadows ranked twelve of them.

In the glossary

McNamara fallacy

Taking what’s easy to measure for all that matters. The market researcher Daniel Yankelovich named it in 1971.

In the glossary

Moral justification

Albert Bandura’s name for making harm feel acceptable by casting it as serving a worthy or moral purpose, such as a company’s mission.

In the glossary

OKRs (objectives and key results)

A goal-setting format many teams use. Each objective is paired with a few measurable key results.

In the glossary

One-way and two-way doors

Jeff Bezos’s terms for decisions you can’t easily undo, and decisions you can.

In the glossary

OODA loop (observe, orient, decide, act)

John Boyd’s model of every decision as a loop. He held that orienting, the picture you act from, matters most.

In the glossary

Operational and analytical

Operational use keeps the live service running, and analytical use looks across many records, the way reports do.

In the glossary

Pace layers

Parts of a building, a society, or a product that change at different speeds, with the slow ones setting the terms for the fast. Stewart Brand’s shearing layers, built on the architect Frank Duffy’s, are a building’s version.

In the glossary

Percentile

Where a case falls when all of them are ranked. If the 99th percentile wait is 3 seconds, 99 in 100 wait 3 seconds or less.

In the glossary

Premortem

Gary Klein’s technique of telling a team its project has already failed and asking each person, alone, to write down why.

In the glossary

Price sensitivity

How much a change in price changes what people will buy. One common survey for it is Peter van Westendorp’s Price Sensitivity Meter, from 1976. It asks at what price a product would seem too cheap to be any good, a bargain, getting expensive, and too expensive to consider, and reads a range of acceptable prices from where the answers cross.

In the glossary

Problem of many hands

Dennis Thompson’s name for harm that comes from so many small contributions that it’s hard to say who’s responsible.

In the glossary

Product judgment

A blend of lived experience, the principles behind the work, and the context of the situation, turned into intuition when making general product decisions. Coupled with product-specific expertise, it becomes what many in the field call “product sense.”

In the glossary

Product-market fit

The point where enough people with the problem keep using a product, and paying for it, that it can grow on their demand. Before it, a team is still finding out who the product is for.

In the glossary

Psychological safety

A shared belief that it’s safe to take interpersonal risks at work, such as raising a concern or admitting a mistake. Amy Edmondson’s research on teams made the idea widely known.

In the glossary

Regression to the mean

An extreme result tends to be followed by a less extreme one, whatever you did in between.

In the glossary

Right to erasure

A person’s right, under the General Data Protection Regulation (GDPR) in the EU and the UK, to ask an organization to delete their personal data, in some circumstances.

In the glossary

SCR (situation, complication, resolution)

A three-part opening for a message. The situation is what the reader already accepts, the complication is what changed, and the resolution is what you recommend or ask. It adapts Barbara Minto’s situation, complication, and question.

In the glossary

Service level objective (SLO)

A reliability target for a service, such as “up 99.9 percent of the time,” agreed before anything goes wrong.

In the glossary

Stock

Anything that builds up or drains away and can be counted or measured at one moment, such as a backlog or a bank balance. Only the flows into and out of it change it.

In the glossary

Stop rule

The result that would make you stop or change course, written before a bet goes live, with the signal you’ll watch and the date you’ll look. Written afterward, it tends to fit whatever happened.

In the glossary

Straddling

Michael Porter’s word for trying to hold two positions that don’t fit together, such as a full-service airline copying a low-cost rival.

In the glossary

Stress position

The end of a sentence, which readers naturally emphasize, so it’s the place for what you most want noticed. The term is Gopen and Swan’s.

In the glossary

System of record

The system that holds the authoritative copy of some data, from which every other copy is made.

In the glossary

Trust equation

A consultants’ model that treats trust as credibility, reliability, and intimacy, divided by self-orientation.

In the glossary

Unforced ambiguity

Ambiguity that isn’t inherent to the situation and comes from how an organization works, such as a decision nobody owns or a doubt nobody felt safe to raise.

In the glossary

Work in progress (WIP)

Work that has been started and not finished. A long queue of it in front of one step is the usual sign of a constraint.

In the glossary