Skip to main content

DDD artifacts (ddd-crew)

The strategic and tactical design of customer-ordering, drawn with the ddd-crew tools plus UML and ER diagrams. Every diagram is Mermaid, derived from the code and ADRs on develop, and carries a Source: line naming the files it came from.

Artifactddd-crew tool / notationWhat it shows
Core domain chartCore Domain ChartsWhere the context sits on business differentiation versus model complexity, and why it is Generic.
Bounded context canvasBounded Context Canvas v5Purpose, classification, roles, every inbound and outbound message, business decisions.
Context mapContext MappingThis context's slice of the fleet map: the pattern of each edge.
Aggregate design canvasAggregate Design Canvas v1.1CustomerOrder and Shopper: states, invariants, commands, events, concurrency.
Domain message flowDomain Message Flow ModellingThe key scenarios as numbered command, query and event flows across contexts.
EventStormingEventStorming glossary and cheat sheetDesign-level process boards with sticky-note colours, plus hotspots.
Ubiquitous languageGlossaryEvery term with the code identifier that implements it.
Class diagramsUML class diagramDomain types, and the hexagonal ports with the adapters that implement them.
Entity-relationship diagramER diagramThe Postgres schema of migrations 0001 to 0011: thirteen tables.
Sequence diagramsUML sequence diagramPlace, cancel, consume, ship-to read and unkeepable promise, with error branches.
Domain eventsEvent catalogueEvery event published and consumed: type, topic, key, payload, effect.

Related pages outside the pack: Use cases, Subdomain classification, Integration and the event catalogue.

:::note Sources of truth The code wins. Domain rules come from internal/domain/{customerorder,shopper,shipto}, behaviour from internal/application/usecases, the envelope from internal/adapters/kafka/cloudevents, the schema from internal/adapters/outbound/postgres/migrations, the REST contract from apis/openapi.yaml, the event contract from apis/asyncapi.yaml and decisions from the ADRs in docs/adr/. Where a page and the code disagree, the page is wrong. :::

:::info Not in this pack The MCP server (ADR 0005), the A2A agent (ADR 0008) and the console remote (web/, ADR 0006) are read surfaces over the model and add no aggregate, entity or event of their own, so the pack has no pages for them. The application layer, the HTTP and Kafka adapters, the outbox relay and the database schema are covered by the pages above. :::