Inside the book

Domain-Driven Architecture

Let the domain shape the architecture. Grounded in the business, connected to the software.

This evolving outline of a forthcoming book by Stefan Priebsch guides readers from understanding existing software to identifying, implementing, and verifying the changes that create the most value.

The outline will evolve as the ideas develop. The order and titles are provisional; these sections describe the questions the book explores.

Part 1

Working on the right things

The ability to produce more software makes choosing what to build an essential architectural responsibility. Counts and business value give that choice a basis in how the business actually works.

Count business cases, exceptions, and manual work. Consider frequency alongside the value of an outcome, the cost of handling it, and the consequences of getting it wrong. A frequent case may offer substantial automation value; a rare case may still deserve attention because its consequences are significant.

Questions to explore

  • Where do work, waiting time, and costs accumulate?
  • Which improvements would create enough value to justify the effort?
  • Which cases should remain manual, and what evidence would change that decision?

Part 2

Understanding what exists

A useful architectural overview connects the business process to the software that supports it. It makes responsibilities, boundaries, dependencies, and constraints visible enough to guide a decision.

Domain-Driven Design helps establish shared language and domain meaning. Domain-Driven Architecture uses that understanding to examine the implemented system and identify where change belongs. Keep domain meaning stable where it remains valid, while treating components and infrastructure as implementations for a particular operating range.

Questions to explore

  • Which software responsibilities support each business process and decision?
  • Where do dependencies cross intended boundaries?
  • What do we need to see to choose the next change with confidence?

Part 3

The process is the architecture

Discover how the business works, make that process visible, and use it to shape the software. The responsibilities, decisions, and handoffs in the process can become the responsibilities, boundaries, and interactions of the architecture.

Discover the process with the people who do the work. In EventStorming, participants build a shared picture around meaningful business events. In Architectural Roleplay, they act out concrete scenarios, taking on roles and exchanging information. Both approaches expose assumptions, exceptions, waiting, and unclear ownership that a description of the happy path can hide.

Turn those discoveries into a shared visualization: who acts, what they need to know, which decision they own, what happens as a result, and who responds next. Trace alternative paths and failures as well as successful outcomes. Use this picture to identify cohesive responsibilities and the information that must cross their boundaries. It becomes a model for the software and a way to check whether the implementation still supports the process.

Conway’s Law explains why the people matter here: the communication structures of an organization constrain the systems it designs. Align team ownership and communication with the responsibilities and handoffs the process needs. Making the process our architecture therefore involves shaping how people collaborate as well as how software components interact.

Business unfolds through things that happen: an order is placed, a payment is received, a shipment is dispatched. Each event establishes a fact that can inform the next decision. An event-driven architecture can carry these facts between the responsibilities we discovered. Event sourcing takes this further by retaining events as the authoritative history from which current state is derived. An order’s status then follows from what happened to it.

The architectural argument is that events express how the business actually unfolds over time. An event-driven, event-sourced implementation can preserve that meaning from collaborative discovery through to running software. Event sourcing is a deliberate implementation choice: discovering business events gives us a model, and the value of retaining and reconstructing their history helps us decide where to use it.

Questions to explore

  • What do EventStorming or Architectural Roleplay reveal about the process that we had assumed rather than understood?
  • How should process responsibilities and handoffs shape software boundaries and team ownership?
  • Which business events connect those responsibilities, and where does their history need to be the source of truth?

Part 4

Architecture in permanent transition

Architecture evolves through useful intermediate states. Each implementation meets current needs within an operating range; changing demand creates reasons to revisit it.

Planning connects what exists to the next intended state, including how the business continues to operate during the transition. Measurable thresholds describe when the current approach would become limiting. Forecasts, change lead time, and a safety margin help determine when work needs to begin.

Threshold hypothesisThis implementation works until X reaches Y.

Planning formulaLatest safe start = predicted threshold date − change lead time − safety margin.

Thresholds and forecasts are hypotheses to review as evidence changes. The aim is to begin early enough to protect the business while keeping the effort proportionate to the need.

Questions to explore

  • Under which measurable conditions would this implementation stop being good enough?
  • Which intermediate states let us make the change while the business keeps working?
  • How much lead time and uncertainty must the plan allow for?

Part 5

Architecture for AI

Agents need architectural direction to implement a useful change in the context of a wider system. The overview connects an individual task to business intent and the responsibilities of the surrounding software.

Make the intended outcome, relevant domain rules, boundaries, and constraints explicit. Define what should change and how the result will be assessed. People remain responsible for priorities and architectural decisions as agents carry out implementation work.

Questions to explore

  • What architectural context does an agent need for this task?
  • Which responsibilities and boundaries must the implementation respect?
  • What evidence will show that the change meets its intended outcome?

Part 6

Closing the roundtrip

Implementation changes architectural reality. Refreshing the overview from the resulting software brings that reality back into the next planning decision.

Visualize the responsibilities and dependencies that now exist, compare them with the intended change, and investigate differences. Then check operating evidence: did manual work decrease, did waiting time improve, and did the change move the constraint? The approach is independent of any particular tool or notation.

Questions to explore

  • Does the overview reflect the software as it is implemented?
  • Where does the result differ from the plan, and what does that tell us?
  • Did the change create the expected value, and what should we do next?

Putting the ideas together

The six-step architectural roundtrip

Understand the business and the software that supports it. Choose changes by value and measurable constraints. Implement, visualize, and verify—then decide again.

  1. Understand the process and its implementation

    Discover decisions, rules, events, and exceptions with the people who do the work. Connect them to software responsibilities and dependencies, and observe where work accumulates and constraints emerge.

  2. Choose where change creates value

    Count cases and manual work. Weigh frequency, effort, delay, risk, and business value against implementation cost. A rare case may deserve attention because its consequences are significant.

  3. Define thresholds and plan the transition

    Describe the current operating range and forecast when it becomes insufficient. Allow for change lead time and a safety margin. Plan useful intermediate states so the business can keep operating.

  4. Implement the next useful change

    Give people and AI agents clear outcomes, domain rules, boundaries, constraints, and acceptance evidence. Preserve valid domain meaning as implementations evolve. People remain responsible for priorities and architectural decisions.

  5. Visualize and inspect the result

    Refresh the architectural overview from the resulting software. Inspect its responsibilities, dependencies, and interactions; investigate differences from the intended process and planned boundaries.

  6. Verify the effect and decide again

    Measure workload, waiting time, errors, cost, and other relevant outcomes. Did the change deliver value and move the constraint? Use the evidence to revisit the process, priorities, and forecasts.

A worked example

From an architectural overview to a verified change

Imagine an order process handling 50 orders per day manually. The overview shows where orders enter the software, where people assess them, and how accepted orders reach fulfillment. Counts reveal the case mix and manual workload; observation and queue analysis suggest that 80 orders per day may be the safe limit.

If demand grows by five orders per day each month, the team expects to reach that threshold in six months. With two months of change lead time and a one-month safety margin, work must begin by month three.

6 monthsuntil the threshold

−

2 monthschange lead time

−

1 monthsafety margin

=

Month 3latest safe start

The team hypothesizes that clear rules can safely handle the 80 percent of standard cases. At 150 incoming orders per day, that would leave 30 for manual assessment. The expected reduction in manual effort justifies testing this focused change, while people continue to assess exceptions.

The plan defines the boundary between automated standard orders and human assessment, the rules that determine the path, and how both paths reach fulfillment. Agents implement that change with explicit instructions to keep ambiguous cases in human assessment.

The team then refreshes the architectural view from the implementation. It checks that both paths follow the intended rules and that fulfillment dependencies respect the planned boundaries. Any differences feed back into the plan.

Finally, the team measures the actual case mix, remaining manual workload, waiting time, and errors. Only this evidence can establish whether capacity improved and the constraint moved. The updated overview and measurements become the starting point for the next decision.

These figures are illustrative hypotheses, not universal limits. Case counts alone do not establish capacity: actual effort per case, consequences, uncertainty, and changing demand require regular review.