Skip to main content

DDD artifacts (ddd-crew)

The full ddd-crew artifact pack for this bounded context, plus UML class, ER and sequence diagrams. Every diagram is Mermaid, derived from the code on develop, and carries a Source: line naming the files it came from and what it leaves out.

Artifactddd-crew tool / notationPage
Core domain chartCore Domain ChartsCore domain chart
Bounded context canvasBounded Context Canvas v5Bounded context canvas
Context mapContext MappingContext map (lives in Ecosystem)
Aggregate design canvasAggregate Design Canvas v1.1Aggregate design canvas
Domain message flowDomain Message Flow ModellingDomain message flow
EventStormingEventStorming glossary and cheat sheetEventStorming
Ubiquitous languageglossaryUbiquitous language (lives in Business Context)
UML class diagramsUMLClass diagrams
ER diagramcrow's foot ERER diagram
UML sequence diagramsUMLSequence diagrams
Domain eventsevent catalogueDomain events

Supporting pages in the same section: Subdomain classification, Read models, Context relationships.

Sources of truth​

When a page and the code disagree, the code wins. The pages were written from:

  • Domain: internal/domain/** — aggregates, value objects, events, views.
  • Application: internal/application/ports/*.go and internal/application/usecases/*.go — commands, transactions, retries, idempotency.
  • Adapters and wiring: internal/adapters/**, cmd/wes, cmd/mcp, cmd/wes-projector, cmd/wes-reports.
  • Contracts: apis/openapi.yaml (REST) and apis/asyncapi.yaml (events); CloudEvents type constants in internal/adapters/kafka/cloudevents/cloudevents.go.
  • Schema: migrations/*.up.sql and migrations/analytics/*.up.sql.
  • Decisions: the ADRs.
  • Siblings: each sibling repository's origin/develop, for who really consumes what.

Estimates (throughput, aggregate size, chart positions) are labelled as estimates.