Skip to main content

DDD artifacts (ddd-crew)

The full ddd-crew artifact pack for this bounded context, plus UML and ER diagrams, all drawn as Mermaid and all derived from the code on develop. Every diagram carries a Source: line naming the files it was read from, and says what it leaves out.

ArtifactPageddd-crew tool / notation
Core Domain ChartCore domain chartcore-domain-charts — Mermaid quadrantChart
Bounded Context CanvasBounded context canvasbounded-context-canvas v5
Context MapEcosystem → Context map (kept in the Ecosystem section, not duplicated here)context-mapping — Mermaid flowchart LR
Aggregate Design CanvasAggregate design canvasaggregate-design-canvas v1.1 — stateDiagram-v2 per root
Domain Message FlowDomain message flowdomain-message-flow-modelling — sequenceDiagram
EventStorming (design level)EventStormingeventstorming-glossary-cheat-sheet — flowchart LR with sticky colours
Ubiquitous LanguageBusiness Context → Ubiquitous language (kept in Business Context, not duplicated here)welcome-to-ddd glossary, every term mapped to a Go identifier
UML class diagramsClass diagramUML classDiagram with DDD stereotypes, plus a ports-and-adapters view
ER diagramEntity-relationshipMermaid erDiagram of the final schema after all migrations
UML sequence diagramsSequence diagramssequenceDiagram per command use case
Domain eventsDomain eventsCatalog: full CloudEvents type, topic, partition key, payload, producer, consumers

The strategic pages that predate this pack stay where they are and are referenced from it: Subdomain classification, Aggregates, Invariants and Context relationships.

Sources of truth​

Every artifact is derived from a source-of-truth file, never from older prose:

Diagram kindRead from
Aggregates, value objects, events, state transitionsinternal/domain/**
Commands, use-case flows, error branchesinternal/application/usecases/*.go, internal/adapters/inbound/http/router.go, internal/adapters/inbound/mcp/tools.go
Ports and adaptersinternal/application/ports/ports.go, internal/adapters/**, cmd/*/main.go
Persistencemigrations/*.up.sql and migrations/analytics/*.up.sql, applied in order
Wire contractsinternal/adapters/kafka/cloudevents/types.go, internal/adapters/outbound/kafka/*.go, apis/openapi.yaml, apis/asyncapi.yaml
Relationships with siblingsthe outbound adapter packages here, and the consumers in the sibling repos named on each page
ClassificationSubdomain classification and the ADRs

Fleet-level artifacts — the EventStorming big picture and the DDD Starter Modelling Process — live in the warehouse-docs aggregator, not here.

Throughput and size numbers on the aggregate design canvas are estimates and are labelled as such. Everything else is a claim about the code; if the code and a page disagree, the code is right and the page is a bug.