Skip to main content

DDD artifacts

The strategic and tactical design of the context in the shape of the ddd-crew tools, plus the UML and ER views of the built service. Every diagram names the code file it reflects in a Source: line. Where code and an earlier design decision disagree, the page documents the code.

The yard domain's design model lives in warehouse-docs; these pages are the own-site, as-built version for this repository.

PageWhat it holdsTool
Ubiquitous languageYard, Yard Visit, Trailer, Spot, Dock Door, Hostler, Yard Move, Door Work, Dwell and the neighbour termsglossary
Use casesone section per command: trigger, adapter, flow, errors, events, idempotencyapplication layer
Subdomain classificationwhy Supporting, neighbours' classesCore Domain Chart companion
Core domain chartposition on the chart and the evolution of each partcore-domain-charts
Bounded context canvaspurpose, classification, roles, every inbound and outbound messagebounded-context-canvas v5
Context mapevery neighbour with its pattern and channelcontext-mapping
Aggregate design canvasYardVisit, Trailer, YardMove, YardCheck, YardPolicy: states, invariants, commands, eventsaggregate-design-canvas v1.1
Domain message flowlive unload, drop and later door call, gate rejection, hostler move with lease expirydomain-message-flow-modelling
EventStormingprocess-level boards with hotspotseventstorming-glossary-cheat-sheet
Class diagramdomain types and the hexagonal ports and adaptersUML
Entity relationshipthe Postgres schema (OLTP and analytics)ER
Sequence diagramsruntime sequences per significant commandUML
Domain eventsthe 23 published and 16 consumed events with CloudEvents types, topics and payloadsevent catalogue

Related: API overview, Event catalogue, Architecture.