Why DDD: Business & Technical Perspectives of Microservices, Adoption, Business Model Canvas
"Domain-Driven Design is an approach to the development of complex software in which we: 1. Focus on the core domain. 2. Explore models in a creative collaboration of domain practitioners and software practitioners. 3. Speak a ubiquitous language within an explicitly bounded context." — Eric Evans, Domain-Driven Design Reference (2015), "Putting the Model to Work"
Summary: DDD is a way to keep software aligned with a complex business by sharing one model and one language between experts and code, and by drawing boundaries around that model; strategic design (what to build, where the lines go) matters before tactical design (classes and patterns), and microservices are only one possible shape of the boundaries. Focus: the problem DDD solves, strategic versus tactical design, domain and model, the business and the technical case for microservices (and when to refuse them), adoption paths, the Business Model Canvas as a map to subdomains, Wardley maps and build/buy/outsource, misunderstandings, prerequisites, measuring success, a first Go and Laravel teaser, and the map of all 15 chapters of this path. Learning goal: Given a business, say which parts deserve a deep model and which should be bought, argue for or against microservices in business words, choose an adoption path (greenfield or brownfield, DDD-lite or full), pick measurable success signals, and know which chapter to read next.
This is the entry page of the DDD & Microservices path (group DD 01, Strategic Design). It is deliberately wide and shallow: every idea here is unpacked in a later chapter, and we link instead of repeating. The neighbours own the details: where the lines go (Service Boundaries), who owns which tables (Data Ownership in Microservices), how services talk (Service Communication), the monolith-versus-services trade (Monolith vs Microservices vs Modular Monolith), object modelling basics (Object-Oriented Modeling) and persistence (Data Persistence Design). Reliable messaging lives in Transactional Outbox and Saga.
Page map
| If you are looking for | Go to |
|---|---|
| The whole page in a few tables | Everything in one minute |
| The problem DDD solves | Why DDD exists |
| Evans, Vernon, Fowler and where the ideas come from | Where it comes from |
| Complexity in the domain, translation loss | The problem |
| Strategic versus tactical | Two halves |
| What "domain" and "model" mean | Domain and model |
| Business case for microservices | Business perspective |
| Technical case and the premium | Technical perspective |
| Greenfield, brownfield, DDD-lite, pilot | Adoption paths |
| Nine blocks, core versus generic | Business Model Canvas |
| Canvas to capabilities to contexts | Canvas to contexts |
| Wardley maps, build/buy/outsource | Wardley and sourcing |
| Wrong beliefs about DDD | Common misunderstandings |
| What you need before you start | Prerequisites |
| Lead time, change failure, vocabulary | Measuring success |
| Same feature without and with a model | Go, Laravel |
| All 15 chapters | The path map |
| Which route fits which situation | Choosing |
| Monolith to distributed | In architecture |
| Hands-on | Lab |
| Beliefs, summary, quiz, terms | Misconceptions, Cheat sheet, Self-check, Glossary |
Everything in one minute
The vocabulary. Every row is unpacked below.
| Term | In plain words | Tiny example | What goes wrong without it |
|---|---|---|---|
| Domain | The business area the software serves | Selling groceries online and getting them to the door | Developers build features without knowing the business |
| Model | A deliberately simplified picture of the domain that solves problems | An Order can be cancelled until it is packed | Rules are scattered across handlers and SQL |
| Ubiquitous language | One vocabulary used in talk, docs and code | "Dispatch", not "set status 3" | Experts and developers translate, and lose meaning |
| Bounded context | The boundary inside which one model and one language hold | "Product" in Catalog is not "Product" in Fulfilment | One giant contradictory model |
| Strategic design | Choosing core, drawing contexts, mapping relations | Invest in Sales pricing and order acceptance, buy payments | Perfect code for the wrong thing |
| Tactical design | Building blocks inside a context | Entity, value object, aggregate | Anemic data bags with logic elsewhere |
| Core domain | The part that makes the business win | Sales: pricing, promotions, order acceptance (Fulfilment's delivery promise is core or supporting, depending on the differentiator) | Top talent wasted on commodity work |
| Microservice premium | The extra cost and risk of a service architecture | Deploy, monitor, retry, version contracts | Teams adopt services and slow down |
Strategic versus tactical (the diagram follows):
| Question | Strategic design | Tactical design |
|---|---|---|
| Asks | What matters, where are the lines, who owns what | How do I express rules in code |
| Output | Subdomain map, contexts, context map, team ownership | Entities, value objects, aggregates, services, events |
| Who decides | Business, product, architects, teams together | The team that owns one context |
| Cost of a mistake | High: it shapes teams and deployables | Moderate: refactor inside one codebase |
| Typical chapters | 02 to 05 | 06 to 12 |
Monolith or services: the business questions first.
| Question | If yes | If no |
|---|---|---|
| Do several teams need to ship independently? | Services (or a modular monolith first) may pay | One deployable is cheaper |
| Is the domain still being discovered? | Stay a monolith; boundaries will move | Boundaries are stable enough to cut |
| Are load profiles wildly different per area? | Extract the hot area | Scale the whole thing |
| Do you have automated deploy, monitoring, on-call? | You can afford the premium | You cannot yet |
How to start: language first, boundaries second, patterns third, services last (and only where a measured reason exists).
Why DDD exists
Most software projects do not fail because the team cannot write a loop or call a database. They fail because the software solves a slightly different problem from the one the business has. The business knows its rules in business words; the code stores them in technical words; every conversation between the two is a translation, and each translation loses something. DDD attacks that gap directly: it asks the team to build one model of the business, speak one language around it, and let the code express it.
| Without a shared model | With a shared model |
|---|---|
| Experts explain, analysts write documents, developers re-interpret | Experts and developers explore the model together |
| Rules live in handlers, SQL, spreadsheets and heads | Rules live in named model elements |
| A new rule means hunting through the code | A new rule means finding the concept and changing it |
| Words in tickets differ from names in code | The same words everywhere in one context |
| Technology choices drive structure | Business boundaries drive structure |
| Good for: throwaway scripts and simple CRUD | Good for: long-lived systems with real business rules |
The analogy we reuse on this page: a hospital. Surgeons, nurses, billing clerks and pharmacists all say "patient", and each means something different (a body on a table, a person to be given a drug, an account to be invoiced). A hospital works because each department has its own vocabulary and its own forms, and there are agreed hand-offs between them. DDD is the discipline of finding those departments in software, giving each its own model, and writing the hand-offs down. Microservices, if you use them, are only a way to make a department's boundary physical.
The picture shows the two halves of DDD. Strategic design decides what is worth modelling deeply and where the lines go; tactical design then builds the model inside one line. Reading it top to bottom is the order of work.
Three common misunderstandings, up front
- "DDD is entities, repositories and value objects." Those are tactical patterns, the smaller half. Fowler says the particularly important part is strategic design: "how to organize large domains into a network of Bounded Contexts".
- "DDD means microservices." DDD gives you contexts; you can deploy them as modules in one process. Fowler's own guidance is that most systems should start as one monolithic application with good modularity.
- "We do DDD because our classes have domain names." Without domain experts in the room, a shared language and a boundary, you have a database diagram with nicer names.
Where it comes from
Evans, 2003. Domain-Driven Design: Tackling Complexity in the Heart of Software named the approach and gave a catalogue of patterns. Evans's free DDD Reference (2015, CC BY 4.0) collects the definitions and one-page summaries. Its opening summary is the quote at the top of this page, and it adds: "Tactics and strategy must be combined to succeed, and DDD addresses both tactical and strategic design."
Fowler, 2020 (bliki). Fowler's entry describes the idea as centring development on "a domain model that has a rich understanding of the processes and rules of a domain", "particularly suited to complex domains, where a lot of often-messy logic needs to be organized", and credits Evans's contribution as a vocabulary and as "Strategic Design - how to organize large domains into a network of Bounded Contexts". His BoundedContext entry (2014) explains why a single unified model of a big business is not feasible.
Vernon, 2013 and 2016. Implementing Domain-Driven Design (2013) and the short Domain-Driven Design Distilled (2016) shifted emphasis to strategic design. The publisher's description of Distilled names "The cornerstones of strategic design with DDD: Bounded Contexts and Ubiquitous Language", "Strategic design with Subdomains" and "Context Mapping". Fowler calls the 2013 book "a good next step, describing some later thinking and focusing particularly on the strategic design aspect".
Osterwalder and Pigneur, 2010. Business Model Generation introduced the Business Model Canvas, now maintained by Strategyzer: "Nine blocks cover who you serve, what you offer, how you deliver it, what it costs, and what it earns."
Wardley, 2016 onwards. Simon Wardley's free book defines a map as a value chain "mapped against the four stages of market evolution (Genesis, Custom, Product, and Commodity)".
Lewis and Fowler, 2014; Fowler 2015. The Microservices article put "Organized around Business Capabilities" at the centre of the style. Sam Newman's Building Microservices (2nd edition) describes itself as covering "all aspects of the software delivery process, and how they are impacted by adopting a microservice architecture". MicroservicePremium and MonolithFirst (May and June 2015) added the warning that services cost something.
Team Topologies, 2019 and DORA. Skelton and Pais made cognitive load the limit on what a team can own; DORA's research gave the delivery metrics we use in Measuring success.
Year Idea What it changed
1 2003 Evans: model, language, bounded context Software design became a business conversation
2 2010 Canvas: nine blocks on one page A shared picture of how the business earns
3 2013 Vernon: strategic design first Lines and ownership before patterns
4 2014 Microservices: business capabilities Boundary, team and deployable can align
5 2015 Microservice premium, Monolith First Services have a price; learn boundaries first
6 2019 Team Topologies: cognitive load Team capacity limits what one context may hold
7 2016+ Wardley maps: evolution stages Build, buy or outsource by maturityThe concept catalogue
The problem: complexity in the domain, translation loss Must-know
In plain words: The hard part of most business software is the business, not the technology. When experts and developers speak different languages, the meaning leaks out at every hand-off.
Common misunderstanding: "Our complexity is technical (scale, latency, frameworks), so we need better technology." Sometimes true; very often the real cost is rework because the software misunderstood a rule. Evans puts it in one line: "Translation blunts communication and makes knowledge crunching anemic."
Definition: Domain complexity is the intrinsic difficulty of the business rules, exceptions and vocabulary. Translation loss is the information destroyed each time knowledge passes between people or artefacts using different vocabularies (expert, analyst, developer, database).
Expert says Analyst writes Developer codes Result
1 "A packed order can't be "Order status must not if status != 2 { ... } Rule lost in the
cancelled, but we can change from 2 to 0" magic number; the
refuse the courier pickup" courier case is gone
2 -> six months later: a bug report says a packed order was cancelled
3 -> developers ask "what is status 2?" -> the expert has to re-explainReal scenarios: a discount rule that the shop calls "loyalty price" and the code calls price2; a refund that the finance team calls "credit note" while the API says negative_payment; an insurance "claim" that is four different things in four tables; "customer" meaning a buyer, an account and a delivery address in the same schema.
| What multiplies translation loss | Effect | What DDD does |
|---|---|---|
| Many hand-offs (expert, analyst, dev, QA) | Each step drops detail | Experts and developers model together |
| Technical vocabulary in code | Experts cannot read or verify it | Business words in class and method names |
| One word, many meanings | Silent contradictions | One model per bounded context |
| Documents separate from code | Docs rot | The model is the code, the language is spoken daily |
Fix: put a domain expert and a developer in the same conversation, write down the words they agree on, and make the code use those words. See Ubiquitous Language.
Two halves: strategic and tactical Must-know
In plain words: Strategic design decides what to build and where the lines go. Tactical design decides how to write the model inside one line.
Common misunderstanding: "Start with aggregates and repositories, strategy can wait." That order gives you a beautifully modelled thing in the wrong place, with the wrong boundaries, owned by nobody.
Definition: Strategic design covers domain and subdomains, ubiquitous language, bounded contexts and context maps. Tactical design covers entities and value objects, aggregates, repositories, services and domain events.
| Aspect | Strategic | Tactical |
|---|---|---|
| Scope | Whole business, several teams | One bounded context, one team |
| Artefacts | Subdomain map, context map, glossary | Code, tests |
| Failure mode | Wrong lines: teams collide, models blur | Anemic model: logic outside the objects |
| Needed for microservices? | Yes: it is where service lines come from | No |
| Needed for a CRUD admin screen? | Barely | No |
| Learn first | Yes | Second |
Evans's own summary lists strategy first ("Focus on the core domain", "Speak a ubiquitous language within an explicitly bounded context") and only then building blocks. Fowler adds that the core notions "are conceptual, and thus apply well with any programming approach - a fact that's especially true of the strategic design aspects."
Real scenarios: a team spends a year on perfect aggregates in a Catalog nobody competes on, while Sales pricing and promotions (the real differentiator) are a pile of cron jobs and spreadsheet uploads; two teams model "Customer" together and each release breaks the other.
Domain and model Must-know
In plain words: The domain is the business world the software is about. The model is the simplified picture of that world the team agrees to build.
Common misunderstanding: "The model is the class diagram" or "the model is the database schema". A model is a set of ideas; diagrams, schemas and code are different expressions of it.
Definition (Evans): a domain is "A sphere of knowledge, influence, or activity. The subject area to which the user applies a program is the domain of the software." and a model is "A system of abstractions that describes selected aspects of a domain and can be used to solve problems related to that domain." The key word is selected: a model leaves things out on purpose.
| Layer of "domain" | Example in our running business |
|---|---|
| The whole domain | Online ordering and fulfilment of groceries |
| Subdomains | Ordering, delivery promise, catalog, payments, identity |
| Model inside one context | Sales: Order, OrderLine, Money; Fulfilment: Parcel, Pick, Route |
| Same word, different models | "Product" is a listing in Catalog, a stock-keeping unit in Fulfilment, an invoice line in Billing |
Context Word What it means there
1 Catalog Product Name, photos, description, category
2 Sales Product Price at time of order, quantity ordered
3 Fulfilment Product Shelf location, weight, picking rule
4 Billing Product Tax category, invoice line textReal scenarios: the electricity "meter" in Fowler's BoundedContext entry meant a grid connection, a customer connection and a physical device to different departments; "Customer" and "Product" recur everywhere as such polysemes.
The business perspective of microservices Must-know
In plain words: A business wants microservices only to get something it can name: independent teams that ship faster, a part that scales or fails alone, a clear owner for each capability. If it cannot name the benefit, it is paying for a fashion.
Common misunderstanding: "Microservices are a technical upgrade the business should be glad about." They are a bet: you pay engineering cost today for autonomy and speed later. Fowler's guideline: "don't even consider microservices unless you have a system that's too complex to manage as a monolith."
Definition: In business terms, a microservice architecture organises software around business capabilities (the 2014 Microservices article's heading "Organized around Business Capabilities"), so that a team can own a capability end to end.
| Business goal | How services can help | What must also be true | Without that |
|---|---|---|---|
| Time-to-market | A team ships its capability without waiting for others | Stable contracts, automated delivery | Coordination moves from code to meetings |
| Team autonomy | Small teams own code, data, release (see Team Topologies "stream-aligned") | Clear ownership, low cognitive load | Teams own too much and slow down |
| Cost | Scale only the hot capability | You can measure which one is hot | You pay for many small runtimes and idle capacity |
| Risk containment | One capability fails alone | Timeouts, fallbacks, bulkheads | A chain of calls fails together |
| Hiring and org growth | Add teams without a bigger shared codebase | Product-aligned teams | Teams split by layer mirror the layers |
| Experimentation | Replace one capability cheaply | Boundaries are right | Rewrites cross many services |
When the business does NOT need them: a product still searching for fit (speed of feedback beats isolation); one small team; a domain that is mostly CRUD; no delivery automation; no on-call culture; boundaries still unknown. Fowler's MonolithFirst says: "Almost all the successful microservice stories have started with a monolith that got too big and was broken up", and that microservices "only work well if you come up with good, stable boundaries between the services".
Business signal Reading
1 Release needs 4 teams to coordinate -> candidate for autonomy (services or modular monolith)
2 Checkout traffic is 20x catalog -> candidate for scaling one capability
3 Two people, one product, weekly ships -> stay a monolith
4 Domain rules still change every week -> stay a monolith; learn the boundaries firstReal scenarios: an e-commerce firm splits Billing out because card rules and audits change on a different cadence from the shop; a start-up with five engineers builds twelve services and spends its week on pipelines; a bank wants one team to own "limits" end to end.
Fix / how to use it: state the benefit as a number you can check later (lead time, release frequency, incident blast radius) before approving any split. See Monolith vs Microservices vs Modular Monolith.
The technical perspective of microservices Important
In plain words: Services let you deploy, scale and fail one part at a time. In return you must run a distributed system: networks, retries, partial failure, many pipelines, many databases.
Common misunderstanding: "Separate processes mean decoupled." Separate processes with a shared database and one release train are a distributed monolith (Service Boundaries).
Definition: The microservice premium is Fowler's name for the added cost and risk: "When you use microservices you have to work on automated deployment, monitoring, dealing with failure, eventual consistency, and other factors that a distributed system introduces."
| Capability | What you gain | What it costs | Where DDD helps |
|---|---|---|---|
| Independent deployability | Ship one service alone | Versioned contracts, backward compatibility | Contexts with small published languages |
| Independent scaling | Scale only the hot part | Orchestration, capacity planning per service | Context map shows which part is hot |
| Fault isolation | One service down does not stop all | Timeouts, circuit breakers, fallbacks | Clear ownership of what is critical |
| Technology freedom | Right tool per context | More runtimes to operate | Each context may pick its own model |
| Data isolation | Own schema per service | No joins, eventual consistency, sagas | Aggregates define consistency boundaries |
| Team ownership | Team = service | On-call per service | Boundaries aligned with teams |
Request What can fail
1 Browser -> Sales /orders Sales down: no orders
2 Sales -> Catalog (sync price lookup) Catalog slow: Sales slow (temporal coupling)
3 Sales -> Billing (sync authorize) Billing timeout: unknown outcome, retry may double charge
4 Sales -> broker: OrderPlaced Broker down: event lost unless outbox is usedThat sequence is why reliable messaging, idempotency and data ownership have their own chapters: Designing for Failure & Reliable Messaging, Data Patterns, and in architecture Data Ownership in Microservices, Service Communication.
Real scenarios: a checkout that calls five services synchronously and has an availability lower than each part; a team that cannot ship because a shared library change needs six pull requests; a report that needs a join across three services and is rebuilt as a read model (see CQRS in Data Patterns).
Adoption paths Must-know
In plain words: You do not "install" DDD. You start talking differently, then drawing lines, then modelling where it pays.
Common misunderstanding: "To adopt DDD we must rewrite everything." You can begin with vocabulary in one team, and pilot a deep model in one core subdomain.
Definition: An adoption path is the order in which a team introduces strategic and tactical practices. A pilot is one bounded piece (ideally a core subdomain) where the full approach is tried first.
Step Action Output
1 1 Learn the language with domain experts Glossary, example sentences
2 2 Map subdomains, pick the core Subdomain map, priorities
3 3 Draw contexts as modules in one deployable Package/namespace boundaries, rules
4 4 Pilot tactical modelling in the core only One rich model with tests
5 5 Measure Lead time, change failure, vocabulary
6 6 Extract a context only on a measured reason One service, with its data| Situation | Starting point | First moves | Watch out for |
|---|---|---|---|
| Greenfield, small team | One deployable, modular | Language workshops, event storming, contexts as modules | Splitting into services too early |
| Greenfield, many teams | Modular monolith with team-owned modules | Context map, explicit published interfaces | Teams sharing tables |
| Brownfield monolith | Wrap and strangle | Find seams, anticorruption layer, extract core last or first by value | A rewrite with no migration path |
| Brownfield, many services already | Make the real contexts visible | Context map of what exists, remove shared databases | Renaming without changing ownership |
| Mostly CRUD product | DDD-lite | Shared vocabulary, a few value objects, one glossary | Over-engineering admin screens |
DDD-lite and when it is fine. DDD-lite means using the vocabulary and a few tactical ideas (value objects, clear names, thin controllers) without the full strategic apparatus. It is fine for supporting and generic parts, for small teams, and as a first step. It is not enough when several teams collide over one model or when the core domain is rich; Evans's own pattern list says to apply top talent and a deep model to the core ("Make the core small. Apply top talent to the core domain").
Pilot in a core subdomain. Choose where being right earns the most money (for us, Sales: pricing, promotions and order acceptance), pick a team with access to experts, set a time box, and measure. A pilot in a generic area teaches little and proves nothing.
Real scenarios: a logistics firm starts with a two-week language workshop and renames code before touching architecture; a retailer wraps its ERP behind an anticorruption layer and builds the new promise engine beside it; an agency adds value objects (Money, PostalCode) to a CRUD app and stops there, correctly.
The Business Model Canvas Must-know
In plain words: The canvas is one page that shows how a business serves customers and earns money. It shows where the business wins, and so where software deserves deep modelling.
Common misunderstanding: "The canvas is a marketing exercise." Strategyzer says to "Treat it as a claim, not a plan"; it is a shared hypothesis that engineers can read to learn what the business cares about.
Definition: The Business Model Canvas (Osterwalder and Pigneur) has nine blocks. Strategyzer describes them as covering "who you serve, what you offer, how you deliver it, what it costs, and what it earns", with the right side as the market and the left side as "what it takes to serve that market". The nine names below (listed in the Wikipedia article on the canvas, a secondary source, citing Business Model Generation) are customer segments, value propositions, channels, customer relationships, revenue streams, key resources, key activities, key partnerships and cost structure.
| Block | Question | Our running example (online ordering + fulfilment) | Software reading (our synthesis) |
|---|---|---|---|
| Customer segments | Who do we serve | Busy households, small shops | Identity roles, delivery rules per segment |
| Value propositions | What do we promise | Fair prices and promotions you can trust; it arrives when we promised | Core: Sales pricing and order acceptance; delivery promise core or supporting |
| Channels | How do they reach us | Web, mobile app, courier handover | Generic: front ends, notifications |
| Customer relationships | How do we keep them | Self-service, fast support | Supporting: support tooling |
| Revenue streams | How do we earn | Margin, delivery fee, subscription | Billing: pricing rules, invoices |
| Key resources | What do we need | Warehouses, stock and route data, brand | Fulfilment data and algorithms |
| Key activities | What must we do well | Curate catalog, price and take orders, pick and pack, deliver on time | Capabilities: Sales, Fulfilment, Catalog |
| Key partnerships | Who helps | Carriers, payment provider, suppliers | Integration points, ACLs |
| Cost structure | What does it cost | Warehouses, couriers, payment fees, support | Where efficiency matters |
The reading column is our own teaching synthesis; neither Osterwalder nor Evans prescribes it. The idea is simple: the value proposition and the key activities that deliver it point to the core subdomain; activities that the business needs but customers do not choose it for are supporting; things everybody has (payments, login, email) are generic, matching Evans's "Core Domain" and "Generic Subdomains" patterns.
Canvas block Evidence in our business Subdomain type
1 Value proposition "Fair prices, promotions you can trust" -> Core: Sales (pricing, order acceptance)
2 Value proposition "Arrives when promised" -> Core or supporting: Fulfilment's promise
3 Key activities Curate catalog -> Supporting: Catalog
4 Key partnerships Payment provider -> Generic: Billing's card processing
5 Customer segments Households, shops, logins -> Generic: IdentityReal scenarios: a retailer finds its canvas promises "same-day" but its best engineers maintain the loyalty-card admin screen; a marketplace sees that "trust" is the proposition and invests in its review and dispute model.
Fix / how to use it: fill the canvas with product and domain experts in an hour, mark the blocks that make customers choose you, and let that decide where the deep modelling budget goes. Details in Domains, Subdomains & Domain Experts.
From canvas to capabilities to candidate contexts Important
In plain words: A canvas gives you activities; activities give you capabilities; capabilities suggest where one model and one language apply, which are your first candidate bounded contexts.
Common misunderstanding: "One capability equals one service." A capability is a business notion; a context is a modelling boundary; a service is a deployment choice. They often line up, but they are three different decisions.
Definition: A business capability is something the business does to create value (take an order, pack a parcel, issue an invoice). A candidate context is a first guess at the boundary where its language is consistent. This is a preview; the real work is in Bounded Context.
Canvas (key activity) Capability Candidate context Team (inverse Conway)
1 Take orders Order management Sales Sales team
2 Pick and pack Fulfilment Fulfilment Warehouse systems team
3 Issue invoices, payments Payments Billing Billing team
4 Curate catalog Catalog management Catalog Catalog team
5 Know who the user is Identity Identity Platform team| Step | Input | Output | Owner chapter |
|---|---|---|---|
| Capabilities from canvas | Nine blocks | List of what the business does | this page |
| Subdomains from capabilities | Capabilities, strategic value | Core, supporting, generic | 02 |
| Language per area | Conversations with experts | Glossary per area | 03 |
| Contexts from language shifts | Where words change meaning | Bounded contexts | 04 |
| Relations between contexts | Who depends on whom | Context map | 05 |
Real scenario: in our business the word "order" in Sales (a customer's intent with price) and in Fulfilment (a pick list for the warehouse) already differ; that shift of meaning is the strongest hint that two contexts exist.
Wardley mapping and build, buy, outsource Good to know
In plain words: A Wardley map shows each component of your value chain and how mature it is in the market. Mature things you can buy; novel things that differentiate you you build.
Common misunderstanding: "Wardley maps replace DDD." They answer a different question (where to invest and which things are commodities) and combine well with subdomain classification.
Definition: The Learn Wardley Mapping site defines a map as a value chain "mapped against the four stages of market evolution (Genesis, Custom, Product, and Commodity)".
| Evolution stage | Typical sign | Typical subdomain type | Sourcing (our heuristic) |
|---|---|---|---|
| Genesis | Novel, uncertain, unique | Core (often) | Build in-house, experiment |
| Custom | Understood but bespoke | Core or supporting | Build, or outsource with a clear contract |
| Product | Several vendors, features compared | Supporting or generic | Buy and configure |
| Commodity | Utility, pay per use | Generic | Buy or use a service |
| Subdomain (running example) | Type | Stage | Choice |
|---|---|---|---|
| Pricing, promotions, order acceptance (Sales) | Core | Custom | Build, deep model, best people |
| Delivery promise (Fulfilment) | Core or supporting (depends on the differentiator) | Custom | Build while it differentiates; supporting once a carrier's SLA can deliver it |
| Catalog curation | Supporting | Custom | Build simply |
| Card payments (Billing) | Generic | Commodity | Use a payment provider |
| Login and accounts (Identity) | Generic | Product | Buy or use an identity service |
The table is our synthesis from Evans ("Also consider off-the-shelf solutions or published models for these generic subdomains") and Wardley's stages, not a rule from either. A small Go program that encodes it is in Go.
Common misunderstandings (extended) Important
In plain words: Most failed DDD efforts fail from the same four beliefs.
Common misunderstanding: All four below.
| Belief | Why it is wrong | What to do |
|---|---|---|
| DDD = entities and repositories | That is the tactical half; the value is in language and boundaries | Start with the language |
| DDD requires microservices | Contexts can be modules; services are an optional deployment | Modular monolith first |
| DDD is only for huge systems | Complex rules matter at any size; DDD-lite fits small ones | Use as much as the complexity needs |
| "We do DDD" with anemic models | Getters and setters plus service classes is Fowler's Anemic Domain Model | See Anemic vs Rich Models |
Real scenario: a team renames tables to domain nouns, adds repositories and calls it DDD; behaviour is still in OrderService, experts never attend, the language is the old one. Fowler calls it an anti-pattern: "The fundamental horror of this anti-pattern is that it's so contrary to the basic idea of object-oriented design", and the model incurs "all of the costs of a domain model, without yielding any of the benefits".
Prerequisites Important
In plain words: Three things make DDD work: people who know the business, a product mindset, and time to learn.
Common misunderstanding: "Developers can model the domain from the requirements document." Evans's reference says domain practitioners and software practitioners must collaborate; the experts are not optional.
| Prerequisite | Why | If missing |
|---|---|---|
| Access to domain experts | The model comes from them | You model your guesses |
| Product thinking | Someone owns outcomes, not tickets | Features without a business reason |
| Time to learn | Models deepen through iteration (Evans: refactoring toward deeper insight) | A shallow model frozen too early |
| Hands-on modellers | People writing code must touch the model | Model and code drift apart (Evans: Hands-on Modelers) |
| Delivery automation | Contexts need safe, frequent change | Boundaries cannot be exercised |
| Sponsorship | Strategic choices cross teams | Local improvements only |
Fix: if you cannot get an expert for an hour a week on the core, postpone the deep model and apply DDD-lite to the vocabulary.
Measuring success Must-know
In plain words: If DDD works, changes get faster and safer, and the code reads like the business.
Common misunderstanding: "Success is the number of patterns used." Patterns used is an activity, not an outcome. DORA warns against "Setting metrics as a goal" and recommends several metrics with tension between them.
Definition: DORA's software delivery metrics split into throughput (change lead time, deployment frequency, failed deployment recovery time) and instability (change fail rate, deployment rework rate). DORA states: "speed and stability are not tradeoffs." For a DDD effort add a language metric: how much of the business vocabulary appears in code and tests.
| Signal | How to measure | Healthy direction | Caveat |
|---|---|---|---|
| Change lead time | Commit to production | Down | Per service or context, not blended |
| Deployment frequency | Deploys per period | Up | Needs automation first |
| Change failure (DORA: change fail rate) | Share of deploys needing a fix | Down | Define "failure" once |
| Failed deployment recovery time | Time to restore | Down | Needs on-call data |
| Business vocabulary in code | Glossary terms found in names and tests | Up | Review with an expert |
| Ask-an-expert tickets | Questions about what a rule means | Down | Count honestly |
| Cross-team change coupling | Commits touching two contexts | Down | Mine from git |
Week Event Reading
1 0 Baseline: lead time 12 days, 18% failures Measure before changing
2 8 Glossary adopted, Sales module extracted Lead time 9 days
3 16 Core model pilot in Sales Failures 11%, rule bugs fall
4 24 Review: vocabulary hit rate 70% Continue, or stop if nothing movedFix: pick three signals before you start, record a baseline, and review them every quarter.
Mechanics
What the work of one iteration looks like Must-know
- Pick one area (a capability from the canvas).
- Run a conversation with an expert (a workshop; see Event Storming); write the words and rules on the wall.
- Agree the vocabulary; put it in a glossary beside the code.
- Name the module (namespace, package) after the context and put the rules in model objects with tests that use the same words.
- Define the interface with other contexts as a small contract, not shared tables.
- Measure, then repeat.
| Artefact | Where it lives | Reviewed by |
|---|---|---|
| Glossary | Repository, next to the module | Domain expert and developer |
| Context map | Repository docs and a diagram | Teams that depend on each other |
| Model code | Module (internal/sales, app/Sales) | The owning team |
| Tests in business words | Same module | The owning team and the expert |
Making a boundary visible in a database Important
A boundary you cannot see in the database tends to leak. A simple start in one PostgreSQL instance is one schema and one role per context:
-- One schema and one role per bounded context (still one database).
CREATE SCHEMA sales;
CREATE SCHEMA fulfilment;
CREATE ROLE sales_app LOGIN;
CREATE ROLE fulfilment_app LOGIN;
GRANT USAGE ON SCHEMA sales TO sales_app;
GRANT USAGE ON SCHEMA fulfilment TO fulfilment_app;
-- No cross-grants: fulfilment_app cannot read sales tables.
CREATE TABLE sales.orders (
id uuid PRIMARY KEY,
state text NOT NULL CHECK (state IN ('placed','paid','packed','dispatched','cancelled'))
);Error you will see when the boundary is enforced: ERROR: permission denied for schema sales (SQLSTATE 42501). Deeper treatment in Data Ownership in Microservices.
Go
The same feature, "cancel an order", written without and with a model. Both are teasers: Aggregates, Anemic vs Rich Models and Repositories do this properly.
Before: rules in database words
// Before: the business rule lives in a handler, in database vocabulary.
package main
import (
"errors"
"fmt"
"time"
)
// OrderRow mirrors the table; every rule is an if-statement elsewhere.
type OrderRow struct {
ID int64
Status int // 0 = new, 1 = paid, 2 = packed, 3 = sent
PaidAt *time.Time
UpdatedAt time.Time
}
// UpdateStatus is the "service": it knows numbers, not the business.
func UpdateStatus(o *OrderRow, status int) error {
if status < 0 || status > 3 {
return errors.New("bad status")
}
// The real rule ("a packed order cannot be cancelled") is missing,
// because "cancel" is not even a word in this code.
o.Status = status
o.UpdatedAt = time.Now()
return nil
}
func main() {
o := &OrderRow{ID: 1, Status: 2}
// Somebody "cancels" by writing 0. Nothing objects.
fmt.Println(UpdateStatus(o, 0), o.Status)
}After: the model carries the rule
// After: the rule has a name, a home and a test-sized surface.
package main
import (
"errors"
"fmt"
)
// State uses the words the warehouse uses.
type State string
const (
Placed State = "placed"
Paid State = "paid"
Packed State = "packed"
Dispatched State = "dispatched"
Cancelled State = "cancelled"
)
// ErrTooLateToCancel is a business failure with a business name.
var ErrTooLateToCancel = errors.New("order is already packed and cannot be cancelled")
// Order is the model: state is private, behaviour is public.
type Order struct {
id string
state State
}
// NewOrder places an order.
func NewOrder(id string) *Order { return &Order{id: id, state: Placed} }
// Pay records payment.
func (o *Order) Pay() { o.state = Paid }
// Pack is called by Fulfilment once the parcel is closed.
func (o *Order) Pack() { o.state = Packed }
// Cancel enforces the rule the business actually speaks.
func (o *Order) Cancel() error {
if o.state == Packed || o.state == Dispatched {
return ErrTooLateToCancel
}
o.state = Cancelled
return nil
}
// State exposes the read-only view.
func (o *Order) State() State { return o.state }
func main() {
o := NewOrder("A-100")
o.Pay()
o.Pack()
fmt.Println(o.Cancel(), o.State())
}Sourcing as code: subdomain type and stage
// Portfolio: map subdomain type and evolution stage to a sourcing choice.
// This is a teaching heuristic, not a rule from Evans or Wardley.
package main
import "fmt"
// Kind is the subdomain type (see the Domains chapter).
type Kind string
// Subdomain kinds.
const (
Core Kind = "core"
Supporting Kind = "supporting"
Generic Kind = "generic"
)
// Stage is the Wardley evolution stage.
type Stage string
// Wardley stages.
const (
Genesis Stage = "genesis"
Custom Stage = "custom"
Product Stage = "product"
Commodity Stage = "commodity"
)
// Subdomain is one row of the running example.
type Subdomain struct {
Name string
Kind Kind
Stage Stage
}
// Sourcing suggests build, buy or outsource.
func Sourcing(s Subdomain) string {
switch {
case s.Kind == Core:
return "build in-house, best people, model deeply"
case s.Kind == Generic && (s.Stage == Product || s.Stage == Commodity):
return "buy or use a service"
case s.Kind == Supporting && s.Stage == Custom:
return "build simply, or outsource with a clear contract"
case s.Kind == Supporting:
return "buy a product and configure it"
default:
return "review the classification"
}
}
func main() {
rows := []Subdomain{
{"Pricing and order acceptance (Sales)", Core, Custom},
// Core or supporting, depending on the differentiator: Supporting
// here because Sales is this business's core; switch to Core only
// if same-day delivery is why customers choose the shop.
{"Delivery promise (Fulfilment)", Supporting, Custom},
{"Catalog curation", Supporting, Custom},
{"Card payments (Billing)", Generic, Commodity},
{"Login (Identity)", Generic, Product},
}
for _, r := range rows {
fmt.Printf("%-37s %-10s %-9s -> %s\n", r.Name, r.Kind, r.Stage, Sourcing(r))
}
}The Go angle
Go has no inheritance and no annotations, which suits DDD well: a model is a struct with unexported fields and methods that keep invariants, and a context is a package (for example internal/sales). The compiler enforces the boundary with internal/ directories and unexported identifiers. Errors are values, so a business failure such as ErrTooLateToCancel can be a named sentinel that handlers map to a status code. Interfaces are satisfied implicitly, so the model package defines the repository interface it needs and infrastructure implements it (see Repositories). Keep the module layout simple; see Domain, Application & Infrastructure Services.
Laravel
Before: a controller that speaks database
<?php
namespace App\Http\Controllers;
use App\Models\Order;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
// Before: the controller speaks database, the rule is missing.
class OrderStatusController extends Controller
{
public function update(Request $request, Order $order): JsonResponse
{
$status = (int) $request->integer('status'); // 0 new, 1 paid, 2 packed, 3 sent
if ($status < 0 || $status > 3) {
return response()->json(['error' => 'bad status'], 422);
}
// "Cancel" is not a word here, so nothing stops writing 0 over a packed order.
$order->update(['status' => $status]);
return response()->json($order);
}
}After: a model with the rule, a thin controller
<?php
namespace App\Sales\Domain;
use DomainException;
enum OrderState: string
{
case Placed = 'placed';
case Paid = 'paid';
case Packed = 'packed';
case Dispatched = 'dispatched';
case Cancelled = 'cancelled';
}
// After: the model carries the rule, in the words the warehouse uses.
final class Order
{
private function __construct(
public readonly string $id,
private OrderState $state,
) {
}
public static function place(string $id): self
{
return new self($id, OrderState::Placed);
}
public function cancel(): void
{
if (in_array($this->state, [OrderState::Packed, OrderState::Dispatched], true)) {
throw new DomainException('Order is already packed and cannot be cancelled.');
}
$this->state = OrderState::Cancelled;
}
public function state(): OrderState
{
return $this->state;
}
}<?php
namespace App\Http\Controllers;
use App\Sales\Application\CancelOrder;
use DomainException;
use Illuminate\Http\JsonResponse;
// The controller only translates HTTP to a use case and a business failure to a status code.
class CancelOrderController extends Controller
{
public function __invoke(string $orderId, CancelOrder $cancelOrder): JsonResponse
{
try {
$cancelOrder->handle($orderId);
} catch (DomainException $e) {
return response()->json(['error' => $e->getMessage()], 409);
}
return response()->json(status: 204);
}
}The Laravel angle
Laravel's defaults (Eloquent, active record) make the data-shaped model the easy path, so DDD in Laravel is a choice, not an accident. A workable shape in Laravel 13 on PHP 8.4: put each context in a namespace (App\Sales, App\Fulfilment) with Domain, Application and Infrastructure folders; use plain PHP classes and backed enums (as in the snippet) for the model, readonly properties for value objects, an invokable controller or action for each use case, and an Eloquent model only inside the infrastructure layer as a persistence detail. Laravel's service container binds repository interfaces to implementations in a service provider. Events are covered in Domain Events vs Integration Events. The snippets were reviewed, not run (PHP is not installed on the authoring machine).
Solving the classic problems
Experts and developers speak different languages
| Solution | How | Advantage | Cost |
|---|---|---|---|
| Glossary beside the code | A markdown glossary reviewed in pull requests | Cheap, visible | Needs upkeep |
| Language workshop | Two hours with experts on one capability | Finds real words | Needs expert time |
| Event storming | Orange sticky notes of events on a wall | Whole flow in one day | Needs facilitation |
| Rename in code | Refactor names to the agreed words | Code becomes readable | A one-off refactor |
We want microservices because everyone does
| Solution | How | Advantage | Cost |
|---|---|---|---|
| Write the benefit as a number | Lead time, scaling need, blast radius | Makes the decision testable | Needs a baseline |
| Modular monolith first | Contexts as modules with enforced boundaries | Same boundaries, one deploy | Discipline without a network to force it |
| Extract on evidence | One context with a clear reason | Small, reversible | Slower than a big bang |
The legacy system is a big ball of mud
| Solution | How | Advantage | Cost |
|---|---|---|---|
| Anticorruption layer | Translate legacy concepts at the edge | Protects the new model | Translation code to maintain |
| Strangler | Route one capability at a time to the new code | Incremental | Two systems for a while |
| Leave it | Do not touch stable generic areas | Zero risk | Legacy stays |
Nobody knows where to invest
| Solution | How | Advantage | Cost |
|---|---|---|---|
| Fill the canvas | One hour with product | Shared view | Opinion-heavy |
| Classify subdomains | Core, supporting, generic | Directs talent | Needs honest debate |
| Wardley map | Stage per component | Build-versus-buy view | Learning curve |
Choosing
| Situation | Recommendation | Extra technique | Reason |
|---|---|---|---|
| Small CRUD product, one team | DDD-lite on a monolith | Glossary, a few value objects | Rules are simple |
| Rich core, one team | Full DDD in the core, in a modular monolith | Event storming, aggregates | Core earns the depth |
| Several teams, one big codebase | Context map, modules per team, then maybe services | Inverse Conway, contracts | Teams collide on one model |
| Legacy monolith with a new product line | Anticorruption layer, strangler | Pilot in the new core | Protect the new model |
| Many services, one database | Fix ownership first | Database per service, Data Patterns | A distributed monolith |
| Generic area (payments, login) | Buy | Thin adapter | Not your differentiator |
| Unclear domain, startup | Monolith, fast feedback | Language only | Boundaries not known yet |
In architecture: from a single process to a distributed system
Monolith: one process, one database
DDD starts here. One deployable, one database, but already one namespace per context and a glossary. Example (everyday): the shop's Order class refuses to cancel a packed order, and the controller only maps the failure to HTTP 409. Nothing is distributed, yet the model is explicit.
Modular monolith and multiple databases
Contexts become modules with published interfaces and, as in the SQL above, a schema and a role each. Modules call each other through small interfaces or in-process events, not each other's tables. Example (production-style, our running business): Sales, Fulfilment, Billing, Catalog and Identity are five modules; Fulfilment reads Sales data only through an OrderPlaced event handled in-process. This stage is often the end of the road. See Modular Monolith.
Microservices: the boundary becomes a network
A context becomes a service with its own data. Example flow: Sales publishes OrderPlaced through an outbox; Fulfilment consumes it idempotently and later publishes ParcelDispatched; Billing charges through a saga with compensation. What survives the move is the language and the contract; what is new is the cost: retries, versioned events, eventual consistency, tracing.
Step Message / call Owner Risk handled by
1 1 POST /orders Sales Idempotency key
2 2 OrderPlaced (outbox) Sales Transactional outbox
3 3 ReserveStock Fulfilment Idempotent consumer
4 4 AuthorizePayment Billing Saga step with compensation
5 5 ParcelDispatched Fulfilment Published languageDistributed data: replicas, caches and multi-region
Different contexts keep read copies of each other's data (a Catalog snapshot in Sales for price display), which is stale by design. Rules: a copy is a cache of a published fact, never a place to write; the owner stays the single writer; views can lag, so the UI shows "price at time of order". Across regions, replica lag and clocks affect which rule you can enforce locally. See Data Patterns and Event-Driven Architecture.
Scaling path: 1x, 10x, 100x
| Load | Shape | What DDD adds |
|---|---|---|
| 1x | One monolith, glossary, modules | Language and clear modules |
| 10x | Modular monolith, read replicas, one hot context extracted | Context map shows which one |
| 100x | Several services, own data, events | Contracts, ownership, sagas where invariants cross contexts |
The path is not forced: many businesses stay at 1x or 10x for a very long time, and that is a success, not a gap.
Lab: fill a canvas, find a core, measure a baseline
Setup: a one-page canvas for any business you know (use the diagram above as a template) and a repository with a deployments table.
- Fill the nine blocks for your business in 30 minutes with one product person.
- Circle the value proposition and the key activity that delivers it. This is your core candidate.
- List five subdomains; mark each core, supporting or generic; mark generic ones "buy".
- Write ten words that mean something special in your business and their definitions; check that code uses them.
- Record a baseline with SQL on your deploy history.
- Run the Go sourcing snippet and edit the rows to match your list.
-- Baseline: median lead time (commit to production) and change fail rate per context.
SELECT context,
percentile_cont(0.5) WITHIN GROUP (ORDER BY deployed_at - committed_at) AS median_lead_time,
avg((needed_fix)::int)::numeric(4,2) AS change_fail_rate,
count(*) AS deployments
FROM deployments
WHERE deployed_at >= now() - interval '90 days'
GROUP BY context;
-- Expected: one row per context, e.g. sales | 02:10:00 | 0.12 | 41Common misconceptions
| Belief | Reality |
|---|---|
| DDD is a set of code patterns | Patterns are the tactical half; language and boundaries come first |
| DDD needs microservices | Contexts can be modules; services are optional |
| DDD is only for huge systems | Complexity, not size, decides; DDD-lite fits small ones |
| An anemic model is fine because we have services | Behaviour outside the model is the anti-pattern to avoid |
| The business model canvas is for MBAs | It tells engineers where the core is |
| Microservices are always faster to build | They add a premium; start where complexity justifies it |
| One service per entity | Services follow capabilities and contexts, not tables |
| DDD slows delivery | A wrong model slows delivery more; measure lead time |
| Developers can model alone | Domain experts are a prerequisite |
| A shared canonical model is best | Evans: total unification is not feasible; use contexts |
| We should rewrite to adopt DDD | Pilot in one core area, strangle the rest |
Cheat sheet
| Topic | What to remember |
|---|---|
| Why DDD | Complexity is in the domain; translation loses meaning |
| Strategic first | Core, language, contexts, map before patterns |
| Domain, model | Domain is the business area; model is a selected abstraction |
| Core | Where the business wins; best people, deep model |
| Supporting, generic | Build simply, or buy |
| Microservices (business) | Capabilities, autonomy, time-to-market; name the benefit |
| Microservices (technical) | Deploy, scale, isolate; pay the premium |
| Start | Language, then boundaries, then patterns, then services |
| DDD-lite | Vocabulary and value objects; fine for small and supporting parts |
| Canvas | Nine blocks; value proposition plus key activities point to core |
| Wardley | Evolution stages guide build/buy/outsource |
| Prerequisites | Experts, product thinking, time |
| Measure | Lead time, change failure, vocabulary in code |
| Order of reading | 02 to 05 strategic, 06 to 12 tactical, 13 to 15 data and APIs |
The path map: all 15 chapters
| # | Chapter | One line |
|---|---|---|
| 01 | Why DDD | This page: the problem, the two halves, the business case, adoption, canvas |
| 02 | Domains, Subdomains & Domain Experts | Core, supporting, generic, and how to work with experts |
| 03 | Ubiquitous Language | One vocabulary in talk and code, and how to grow it |
| 04 | Bounded Context | Where one model holds, and how to find the lines |
| 05 | Context Maps & Integration Patterns | How contexts relate: partnership, shared kernel, ACL and others |
| 06 | Entities & Value Objects | Identity versus value, and why it matters |
| 07 | Aggregates & Factories | Consistency boundaries and safe creation |
| 08 | Anemic vs Rich Domain Models | Where behaviour lives |
| 09 | Repositories | Collection-like access to aggregates |
| 10 | Domain, Application & Infrastructure Services | Who orchestrates, who decides, who talks to the world |
| 11 | Domain Events vs Integration Events | Facts inside a context versus contracts between them |
| 12 | Event Storming | Workshop to discover events, commands and contexts |
| 13 | Data Patterns | Database per service, CQRS, read-side replication |
| 14 | Designing for Failure & Reliable Messaging | Retries, idempotency, outbox, sagas in this setting |
| 15 | API Realization | REST, API management and GraphQL for your contexts |
Reading order. Read 01 to 05 in order. Then read 06 to 11 in order if you will write code; do 12 as soon as you can run a workshop, or read it right after 02 if you cannot wait. Read 13 to 15 when you are about to split or already have services. If you only have an hour: this page, 02 and 04.
Self-check: questions & answers
- Must-know asked in almost every interview
- Important frequent; expected at senior level
- Good to know extra depth that sets you apart
1 — What does DDD try to reduce, and where does that cost usually hide? Must-know
Answer
Answer: Translation loss between business and code; it hides in hand-offs, in technical vocabulary and in one word with several meanings.
2 — Which half of DDD matters first, and why? Must-know
Answer
Answer: Strategic design: it decides what to build and where the lines go; tactical patterns inside the wrong boundary are wasted.
3 — Define domain and model in Evans's words. Must-know
Answer
Answer: Domain: a sphere of knowledge, influence or activity. Model: a system of abstractions that describes selected aspects of a domain and can be used to solve problems related to it.
4 — Give two business reasons for microservices and two reasons the business may not need them. Must-know
Answer
Answer: For: independent team delivery, scaling one capability. Against: a small team, a domain still being discovered, no delivery automation.
5 — What is the microservice premium? Important
Answer
Answer: The extra cost and risk of distribution: automated deployment, monitoring, failure handling, eventual consistency.
6 — When is DDD-lite enough? Important
Answer
Answer: Small teams, supporting or generic parts, mostly CRUD products, or as a first step; not when several teams fight over one model or the core is rich.
7 — Which canvas blocks point to the core subdomain? Important
Answer
Answer: The value proposition and the key activities that deliver it (our synthesis).
8 — How do Wardley stages guide sourcing? Good to know
Answer
Answer: Genesis and custom core parts are built; product and commodity generic parts are bought.
9 — Name three prerequisites for DDD. Must-know
Answer
Answer: Access to domain experts, product thinking, time to learn.
10 — Which three signals would you track? Good to know
Answer
Answer: Change lead time, change failure rate and business vocabulary in code.
11 — Is "capability = context = service" true? Must-know
Answer
Answer: No: capability is a business notion, context a modelling boundary, service a deployment choice.
Glossary
| Term | Meaning |
|---|---|
| Domain | The business area the software serves |
| Model | A selected abstraction of the domain used to solve problems |
| Ubiquitous language | The shared vocabulary of one bounded context |
| Bounded context | Boundary within which one model and language apply |
| Strategic design | Core domain, contexts and their relations |
| Tactical design | Entities, value objects, aggregates, repositories, services, events |
| Core domain | The part that gives competitive advantage |
| Supporting subdomain | Needed, specific to you, not a differentiator |
| Generic subdomain | Needed by everyone; buy or reuse |
| Domain expert | A person who knows the business rules |
| Translation loss | Meaning lost when passing between vocabularies |
| Microservice premium | Extra cost and risk of microservices |
| Modular monolith | One deployable with enforced module boundaries |
| DDD-lite | Vocabulary and a few tactical patterns without the full strategy |
| Anemic domain model | Data objects with behaviour outside them |
| Business Model Canvas | One-page nine-block description of a business |
| Business capability | Something the business does to create value |
| Wardley map | Value chain mapped against evolution stages |
| Genesis, Custom, Product, Commodity | The four evolution stages |
| Anticorruption layer | Translation layer that protects a model from another |
| Strangler | Replace a legacy system one capability at a time |
| Change lead time | Time from commit to production |
| Change failure | Deployments that need immediate remediation (DORA: change fail rate) |
| Team Topologies | Team types and cognitive load model |
| Cognitive load | How much a team must hold in its head |
References
- Eric Evans, Domain-Driven Design Reference (2015, CC BY 4.0): https://www.domainlanguage.com/wp-content/uploads/2016/05/DDD_Reference_2015-03.pdf
- Martin Fowler, Domain Driven Design (2020): https://martinfowler.com/bliki/DomainDrivenDesign.html
- Martin Fowler, Bounded Context (2014): https://martinfowler.com/bliki/BoundedContext.html
- Martin Fowler, Anemic Domain Model: https://martinfowler.com/bliki/AnemicDomainModel.html
- Martin Fowler, Microservice Premium (2015): https://martinfowler.com/bliki/MicroservicePremium.html
- Martin Fowler, Monolith First (2015): https://martinfowler.com/bliki/MonolithFirst.html
- Lewis and Fowler, Microservices (2014): https://martinfowler.com/articles/microservices.html
- Vaughn Vernon, Domain-Driven Design Distilled (publisher page): https://www.informit.com/store/domain-driven-design-distilled-9780134434421
- Strategyzer, The Business Model Canvas: https://www.strategyzer.com/library/the-business-model-canvas
- Business Model Canvas (nine block names, secondary): https://en.wikipedia.org/wiki/Business_Model_Canvas
- Learn Wardley Mapping, Introduction: https://learnwardleymapping.com/introduction/
- Team Topologies, key concepts: https://teamtopologies.com/key-concepts
- DORA, software delivery performance metrics: https://dora.dev/guides/dora-metrics-four-keys/
- Sam Newman, Building Microservices, 2nd edition (book page): https://samnewman.io/books/building_microservices_2nd_edition/