Skip to content

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 forGo to
The whole page in a few tablesEverything in one minute
The problem DDD solvesWhy DDD exists
Evans, Vernon, Fowler and where the ideas come fromWhere it comes from
Complexity in the domain, translation lossThe problem
Strategic versus tacticalTwo halves
What "domain" and "model" meanDomain and model
Business case for microservicesBusiness perspective
Technical case and the premiumTechnical perspective
Greenfield, brownfield, DDD-lite, pilotAdoption paths
Nine blocks, core versus genericBusiness Model Canvas
Canvas to capabilities to contextsCanvas to contexts
Wardley maps, build/buy/outsourceWardley and sourcing
Wrong beliefs about DDDCommon misunderstandings
What you need before you startPrerequisites
Lead time, change failure, vocabularyMeasuring success
Same feature without and with a modelGo, Laravel
All 15 chaptersThe path map
Which route fits which situationChoosing
Monolith to distributedIn architecture
Hands-onLab
Beliefs, summary, quiz, termsMisconceptions, Cheat sheet, Self-check, Glossary

Everything in one minute ​

The vocabulary. Every row is unpacked below.

TermIn plain wordsTiny exampleWhat goes wrong without it
DomainThe business area the software servesSelling groceries online and getting them to the doorDevelopers build features without knowing the business
ModelA deliberately simplified picture of the domain that solves problemsAn Order can be cancelled until it is packedRules are scattered across handlers and SQL
Ubiquitous languageOne vocabulary used in talk, docs and code"Dispatch", not "set status 3"Experts and developers translate, and lose meaning
Bounded contextThe boundary inside which one model and one language hold"Product" in Catalog is not "Product" in FulfilmentOne giant contradictory model
Strategic designChoosing core, drawing contexts, mapping relationsInvest in Sales pricing and order acceptance, buy paymentsPerfect code for the wrong thing
Tactical designBuilding blocks inside a contextEntity, value object, aggregateAnemic data bags with logic elsewhere
Core domainThe part that makes the business winSales: pricing, promotions, order acceptance (Fulfilment's delivery promise is core or supporting, depending on the differentiator)Top talent wasted on commodity work
Microservice premiumThe extra cost and risk of a service architectureDeploy, monitor, retry, version contractsTeams adopt services and slow down

Strategic versus tactical (the diagram follows):

QuestionStrategic designTactical design
AsksWhat matters, where are the lines, who owns whatHow do I express rules in code
OutputSubdomain map, contexts, context map, team ownershipEntities, value objects, aggregates, services, events
Who decidesBusiness, product, architects, teams togetherThe team that owns one context
Cost of a mistakeHigh: it shapes teams and deployablesModerate: refactor inside one codebase
Typical chapters02 to 0506 to 12

Monolith or services: the business questions first.

QuestionIf yesIf no
Do several teams need to ship independently?Services (or a modular monolith first) may payOne deployable is cheaper
Is the domain still being discovered?Stay a monolith; boundaries will moveBoundaries are stable enough to cut
Are load profiles wildly different per area?Extract the hot areaScale the whole thing
Do you have automated deploy, monitoring, on-call?You can afford the premiumYou 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 modelWith a shared model
Experts explain, analysts write documents, developers re-interpretExperts and developers explore the model together
Rules live in handlers, SQL, spreadsheets and headsRules live in named model elements
A new rule means hunting through the codeA new rule means finding the concept and changing it
Words in tickets differ from names in codeThe same words everywhere in one context
Technology choices drive structureBusiness boundaries drive structure
Good for: throwaway scripts and simple CRUDGood 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.

STRATEGIC design: what to build, where the lines go, who owns whatDomain / subdomainsUbiquitous languageBounded contextsContext map (relations)Decided with domain experts, product and teams. Cheap to change on paper, costly in code.constrainsTACTICAL design: how to model inside ONE bounded contextEntityValue objectAggregateRepositoryServiceDomain eventTactical patterns without strategy give a well-modelled wrong thing.

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 ​

  1. "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".
  2. "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.
  3. "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.

text
     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 maturity

The 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).

text
     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-explain

Real 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 lossEffectWhat DDD does
Many hand-offs (expert, analyst, dev, QA)Each step drops detailExperts and developers model together
Technical vocabulary in codeExperts cannot read or verify itBusiness words in class and method names
One word, many meaningsSilent contradictionsOne model per bounded context
Documents separate from codeDocs rotThe 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.

AspectStrategicTactical
ScopeWhole business, several teamsOne bounded context, one team
ArtefactsSubdomain map, context map, glossaryCode, tests
Failure modeWrong lines: teams collide, models blurAnemic model: logic outside the objects
Needed for microservices?Yes: it is where service lines come fromNo
Needed for a CRUD admin screen?BarelyNo
Learn firstYesSecond

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 domainOnline ordering and fulfilment of groceries
SubdomainsOrdering, delivery promise, catalog, payments, identity
Model inside one contextSales: 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
text
     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 text

Real 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 goalHow services can helpWhat must also be trueWithout that
Time-to-marketA team ships its capability without waiting for othersStable contracts, automated deliveryCoordination moves from code to meetings
Team autonomySmall teams own code, data, release (see Team Topologies "stream-aligned")Clear ownership, low cognitive loadTeams own too much and slow down
CostScale only the hot capabilityYou can measure which one is hotYou pay for many small runtimes and idle capacity
Risk containmentOne capability fails aloneTimeouts, fallbacks, bulkheadsA chain of calls fails together
Hiring and org growthAdd teams without a bigger shared codebaseProduct-aligned teamsTeams split by layer mirror the layers
ExperimentationReplace one capability cheaplyBoundaries are rightRewrites 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".

text
     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 first

Real 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."

CapabilityWhat you gainWhat it costsWhere DDD helps
Independent deployabilityShip one service aloneVersioned contracts, backward compatibilityContexts with small published languages
Independent scalingScale only the hot partOrchestration, capacity planning per serviceContext map shows which part is hot
Fault isolationOne service down does not stop allTimeouts, circuit breakers, fallbacksClear ownership of what is critical
Technology freedomRight tool per contextMore runtimes to operateEach context may pick its own model
Data isolationOwn schema per serviceNo joins, eventual consistency, sagasAggregates define consistency boundaries
Team ownershipTeam = serviceOn-call per serviceBoundaries aligned with teams
text
     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 used

That 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.

1 Learn thelanguage withdomain experts2 Map subdomains,pick the core3 Contexts asmodules in onedeployable4 Pilot tacticalmodelling in thecore only5 Measure: leadtime, changefailure, wordsNeed ownscale or team?Yes: extract THATcontext to a serviceNo: stay a modularmonolith, keep goingGreenfield vs brownfieldGreenfield: start at 1, one deployable first.Brownfield: wrap legacy with ananticorruption layer, then strangle itcontext by context, core first.repeat per context
text
     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
SituationStarting pointFirst movesWatch out for
Greenfield, small teamOne deployable, modularLanguage workshops, event storming, contexts as modulesSplitting into services too early
Greenfield, many teamsModular monolith with team-owned modulesContext map, explicit published interfacesTeams sharing tables
Brownfield monolithWrap and strangleFind seams, anticorruption layer, extract core last or first by valueA rewrite with no migration path
Brownfield, many services alreadyMake the real contexts visibleContext map of what exists, remove shared databasesRenaming without changing ownership
Mostly CRUD productDDD-liteShared vocabulary, a few value objects, one glossaryOver-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.

Key partnersCarriersPayment providerSuppliersKey activitiesCurate catalogPrice + take ordersPick and packDeliver on timeKey resourcesWarehousesStock + route dataBrandValue propositionsFair prices andpromotions you trust;it arrives when wepromised.Customer relationshipsSelf-serviceFast human supportChannelsWeb, mobile appCourier handoverCustomer segmentsBusy householdsSmall shopsCost structureWarehouses, couriers, payment fees, support staffRevenue streamsProduct margin, delivery fee, subscriptionReading it for DDD: CORE = Sales (pricing, promotions, order acceptance).Delivery promise = core or supporting. Catalog = supporting. Payments, login, email = generic.
BlockQuestionOur running example (online ordering + fulfilment)Software reading (our synthesis)
Customer segmentsWho do we serveBusy households, small shopsIdentity roles, delivery rules per segment
Value propositionsWhat do we promiseFair prices and promotions you can trust; it arrives when we promisedCore: Sales pricing and order acceptance; delivery promise core or supporting
ChannelsHow do they reach usWeb, mobile app, courier handoverGeneric: front ends, notifications
Customer relationshipsHow do we keep themSelf-service, fast supportSupporting: support tooling
Revenue streamsHow do we earnMargin, delivery fee, subscriptionBilling: pricing rules, invoices
Key resourcesWhat do we needWarehouses, stock and route data, brandFulfilment data and algorithms
Key activitiesWhat must we do wellCurate catalog, price and take orders, pick and pack, deliver on timeCapabilities: Sales, Fulfilment, Catalog
Key partnershipsWho helpsCarriers, payment provider, suppliersIntegration points, ACLs
Cost structureWhat does it costWarehouses, couriers, payment fees, supportWhere 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.

text
     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: Identity

Real 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.

text
     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
StepInputOutputOwner chapter
Capabilities from canvasNine blocksList of what the business doesthis page
Subdomains from capabilitiesCapabilities, strategic valueCore, supporting, generic02
Language per areaConversations with expertsGlossary per area03
Contexts from language shiftsWhere words change meaningBounded contexts04
Relations between contextsWho depends on whomContext map05

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 stageTypical signTypical subdomain typeSourcing (our heuristic)
GenesisNovel, uncertain, uniqueCore (often)Build in-house, experiment
CustomUnderstood but bespokeCore or supportingBuild, or outsource with a clear contract
ProductSeveral vendors, features comparedSupporting or genericBuy and configure
CommodityUtility, pay per useGenericBuy or use a service
Subdomain (running example)TypeStageChoice
Pricing, promotions, order acceptance (Sales)CoreCustomBuild, deep model, best people
Delivery promise (Fulfilment)Core or supporting (depends on the differentiator)CustomBuild while it differentiates; supporting once a carrier's SLA can deliver it
Catalog curationSupportingCustomBuild simply
Card payments (Billing)GenericCommodityUse a payment provider
Login and accounts (Identity)GenericProductBuy 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.

BeliefWhy it is wrongWhat to do
DDD = entities and repositoriesThat is the tactical half; the value is in language and boundariesStart with the language
DDD requires microservicesContexts can be modules; services are an optional deploymentModular monolith first
DDD is only for huge systemsComplex rules matter at any size; DDD-lite fits small onesUse as much as the complexity needs
"We do DDD" with anemic modelsGetters and setters plus service classes is Fowler's Anemic Domain ModelSee 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.

PrerequisiteWhyIf missing
Access to domain expertsThe model comes from themYou model your guesses
Product thinkingSomeone owns outcomes, not ticketsFeatures without a business reason
Time to learnModels deepen through iteration (Evans: refactoring toward deeper insight)A shallow model frozen too early
Hands-on modellersPeople writing code must touch the modelModel and code drift apart (Evans: Hands-on Modelers)
Delivery automationContexts need safe, frequent changeBoundaries cannot be exercised
SponsorshipStrategic choices cross teamsLocal 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.

SignalHow to measureHealthy directionCaveat
Change lead timeCommit to productionDownPer service or context, not blended
Deployment frequencyDeploys per periodUpNeeds automation first
Change failure (DORA: change fail rate)Share of deploys needing a fixDownDefine "failure" once
Failed deployment recovery timeTime to restoreDownNeeds on-call data
Business vocabulary in codeGlossary terms found in names and testsUpReview with an expert
Ask-an-expert ticketsQuestions about what a rule meansDownCount honestly
Cross-team change couplingCommits touching two contextsDownMine from git
text
     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 moved

Fix: 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 ​

  1. Pick one area (a capability from the canvas).
  2. Run a conversation with an expert (a workshop; see Event Storming); write the words and rules on the wall.
  3. Agree the vocabulary; put it in a glossary beside the code.
  4. Name the module (namespace, package) after the context and put the rules in model objects with tests that use the same words.
  5. Define the interface with other contexts as a small contract, not shared tables.
  6. Measure, then repeat.
ArtefactWhere it livesReviewed by
GlossaryRepository, next to the moduleDomain expert and developer
Context mapRepository docs and a diagramTeams that depend on each other
Model codeModule (internal/sales, app/Sales)The owning team
Tests in business wordsSame moduleThe 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:

sql
-- 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 ​

go
// 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 ​

go
// 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 ​

go
// 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
<?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
<?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
<?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 ​

SolutionHowAdvantageCost
Glossary beside the codeA markdown glossary reviewed in pull requestsCheap, visibleNeeds upkeep
Language workshopTwo hours with experts on one capabilityFinds real wordsNeeds expert time
Event stormingOrange sticky notes of events on a wallWhole flow in one dayNeeds facilitation
Rename in codeRefactor names to the agreed wordsCode becomes readableA one-off refactor

We want microservices because everyone does ​

SolutionHowAdvantageCost
Write the benefit as a numberLead time, scaling need, blast radiusMakes the decision testableNeeds a baseline
Modular monolith firstContexts as modules with enforced boundariesSame boundaries, one deployDiscipline without a network to force it
Extract on evidenceOne context with a clear reasonSmall, reversibleSlower than a big bang

The legacy system is a big ball of mud ​

SolutionHowAdvantageCost
Anticorruption layerTranslate legacy concepts at the edgeProtects the new modelTranslation code to maintain
StranglerRoute one capability at a time to the new codeIncrementalTwo systems for a while
Leave itDo not touch stable generic areasZero riskLegacy stays

Nobody knows where to invest ​

SolutionHowAdvantageCost
Fill the canvasOne hour with productShared viewOpinion-heavy
Classify subdomainsCore, supporting, genericDirects talentNeeds honest debate
Wardley mapStage per componentBuild-versus-buy viewLearning curve

Choosing ​

SituationRecommendationExtra techniqueReason
Small CRUD product, one teamDDD-lite on a monolithGlossary, a few value objectsRules are simple
Rich core, one teamFull DDD in the core, in a modular monolithEvent storming, aggregatesCore earns the depth
Several teams, one big codebaseContext map, modules per team, then maybe servicesInverse Conway, contractsTeams collide on one model
Legacy monolith with a new product lineAnticorruption layer, stranglerPilot in the new coreProtect the new model
Many services, one databaseFix ownership firstDatabase per service, Data PatternsA distributed monolith
Generic area (payments, login)BuyThin adapterNot your differentiator
Unclear domain, startupMonolith, fast feedbackLanguage onlyBoundaries 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.

text
     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 language

Distributed 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 ​

LoadShapeWhat DDD adds
1xOne monolith, glossary, modulesLanguage and clear modules
10xModular monolith, read replicas, one hot context extractedContext map shows which one
100xSeveral services, own data, eventsContracts, 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.

  1. Fill the nine blocks for your business in 30 minutes with one product person.
  2. Circle the value proposition and the key activity that delivers it. This is your core candidate.
  3. List five subdomains; mark each core, supporting or generic; mark generic ones "buy".
  4. Write ten words that mean something special in your business and their definitions; check that code uses them.
  5. Record a baseline with SQL on your deploy history.
  6. Run the Go sourcing snippet and edit the rows to match your list.
sql
-- 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 | 41

Common misconceptions ​

BeliefReality
DDD is a set of code patternsPatterns are the tactical half; language and boundaries come first
DDD needs microservicesContexts can be modules; services are optional
DDD is only for huge systemsComplexity, not size, decides; DDD-lite fits small ones
An anemic model is fine because we have servicesBehaviour outside the model is the anti-pattern to avoid
The business model canvas is for MBAsIt tells engineers where the core is
Microservices are always faster to buildThey add a premium; start where complexity justifies it
One service per entityServices follow capabilities and contexts, not tables
DDD slows deliveryA wrong model slows delivery more; measure lead time
Developers can model aloneDomain experts are a prerequisite
A shared canonical model is bestEvans: total unification is not feasible; use contexts
We should rewrite to adopt DDDPilot in one core area, strangle the rest

Cheat sheet ​

TopicWhat to remember
Why DDDComplexity is in the domain; translation loses meaning
Strategic firstCore, language, contexts, map before patterns
Domain, modelDomain is the business area; model is a selected abstraction
CoreWhere the business wins; best people, deep model
Supporting, genericBuild simply, or buy
Microservices (business)Capabilities, autonomy, time-to-market; name the benefit
Microservices (technical)Deploy, scale, isolate; pay the premium
StartLanguage, then boundaries, then patterns, then services
DDD-liteVocabulary and value objects; fine for small and supporting parts
CanvasNine blocks; value proposition plus key activities point to core
WardleyEvolution stages guide build/buy/outsource
PrerequisitesExperts, product thinking, time
MeasureLead time, change failure, vocabulary in code
Order of reading02 to 05 strategic, 06 to 12 tactical, 13 to 15 data and APIs

The path map: all 15 chapters ​

DD 01 Strategic designDD 02 Tactical designDD 03 Data and APIs01 Why DDD (you are here)02 Domains, subdomains03 Ubiquitous language04 Bounded context05 Context maps06 Entities, value objects07 Aggregates, factories08 Anemic vs rich models09 Repositories10 Domain/app/infra services11 Domain vs integration events12 Event storming13 Data patterns, CQRS14 Failure, reliable messaging15 API realizationEvent storming (12) is also afast way into 02 to 05: read itearly if you can run a workshop.
#ChapterOne line
01Why DDDThis page: the problem, the two halves, the business case, adoption, canvas
02Domains, Subdomains & Domain ExpertsCore, supporting, generic, and how to work with experts
03Ubiquitous LanguageOne vocabulary in talk and code, and how to grow it
04Bounded ContextWhere one model holds, and how to find the lines
05Context Maps & Integration PatternsHow contexts relate: partnership, shared kernel, ACL and others
06Entities & Value ObjectsIdentity versus value, and why it matters
07Aggregates & FactoriesConsistency boundaries and safe creation
08Anemic vs Rich Domain ModelsWhere behaviour lives
09RepositoriesCollection-like access to aggregates
10Domain, Application & Infrastructure ServicesWho orchestrates, who decides, who talks to the world
11Domain Events vs Integration EventsFacts inside a context versus contracts between them
12Event StormingWorkshop to discover events, commands and contexts
13Data PatternsDatabase per service, CQRS, read-side replication
14Designing for Failure & Reliable MessagingRetries, idempotency, outbox, sagas in this setting
15API RealizationREST, 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 ​

Show:
  • 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 ​

TermMeaning
DomainThe business area the software serves
ModelA selected abstraction of the domain used to solve problems
Ubiquitous languageThe shared vocabulary of one bounded context
Bounded contextBoundary within which one model and language apply
Strategic designCore domain, contexts and their relations
Tactical designEntities, value objects, aggregates, repositories, services, events
Core domainThe part that gives competitive advantage
Supporting subdomainNeeded, specific to you, not a differentiator
Generic subdomainNeeded by everyone; buy or reuse
Domain expertA person who knows the business rules
Translation lossMeaning lost when passing between vocabularies
Microservice premiumExtra cost and risk of microservices
Modular monolithOne deployable with enforced module boundaries
DDD-liteVocabulary and a few tactical patterns without the full strategy
Anemic domain modelData objects with behaviour outside them
Business Model CanvasOne-page nine-block description of a business
Business capabilitySomething the business does to create value
Wardley mapValue chain mapped against evolution stages
Genesis, Custom, Product, CommodityThe four evolution stages
Anticorruption layerTranslation layer that protects a model from another
StranglerReplace a legacy system one capability at a time
Change lead timeTime from commit to production
Change failureDeployments that need immediate remediation (DORA: change fail rate)
Team TopologiesTeam types and cognitive load model
Cognitive loadHow much a team must hold in its head

References ​

Built by Morteza Negahi