Skip to main content

DDD artifacts (ddd-crew)

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

Artifactddd-crew tool / notationWhat it shows
Core domain chartCore Domain ChartsWhere this context sits on business differentiation vs model complexity, and why it is Core.
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: upstream/downstream, patterns and technology per edge.
Aggregate design canvasAggregate Design Canvas v1.1ProcessCapacity and CapacityPlan: states, invariants, commands, events, size.
Domain message flowDomain Message Flow ModellingKey business scenarios as numbered command / event / query flows across contexts.
EventStormingEventStorming glossary and cheat sheetDesign-level process flows with the sticky-note colours, plus hotspots.
Ubiquitous languageGlossaryEvery term with the code identifier that implements it.
Class diagramsUML class diagramDomain types per package, and the hexagonal ports with their adapters.
Entity-relationship diagramER diagramThe final OLTP and analytical schemas, and which tables back which aggregate.
Sequence diagramsUML sequence diagramEvery command use case, from inbound adapter to outbox, with error branches.
Domain eventsEvent catalogueEvery event published and consumed: full CloudEvents type, topic, key, payload, producer, consumers.

Related pages outside the pack: Use cases, Aggregates, Capacity composition, Upstream contracts and the event catalogue.

Sources of truth

The code wins. Domain rules come from internal/domain/**, the use cases from internal/application/usecases, the wiring from cmd/*/main.go, the schema from internal/adapters/outbound/postgres/migrations/*.up.sql and analytics/migrations/*.up.sql, the REST contract from apis/openapi.yaml, the event contract from apis/asyncapi.yaml and the encoders in internal/adapters/outbound/kafka, and decisions from the ADRs in docs/adr/. Where a page and the code disagree, the page is wrong.