DDD artifacts (ddd-crew)
The strategic and tactical design of slotting-optimization, 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.
| Artifact | ddd-crew tool / notation | What it shows |
|---|---|---|
| Core domain chart | Core Domain Charts | Where this context sits on business differentiation vs model complexity, and why it is Supporting. |
| Bounded context canvas | Bounded Context Canvas v5 | Purpose, classification, roles, every inbound and outbound message, business decisions. |
| Context map | Context Mapping | This context's slice of the fleet map: upstream/downstream, patterns and technology per edge, planned edges labelled. |
| Aggregate design canvas | Aggregate Design Canvas v1.1 | SlotPlan: states, invariants, commands, events, size, concurrency. |
| Domain message flow | Domain Message Flow Modelling | The key scenarios as numbered command / event / query flows across contexts. |
| EventStorming | EventStorming glossary and cheat sheet | Design-level process flow with the sticky-note colours, plus hotspots. |
| Ubiquitous language | Glossary | Every term with the code identifier that implements it. |
| Class diagrams | UML class diagram | Domain types, and the hexagonal ports with their adapters. |
| Entity-relationship diagram | ER diagram | The OLTP schema and which tables back what. |
| Sequence diagrams | UML sequence diagram | Generate, approve, reject, a consumer message and the relay, with error branches. |
| Domain events | Event catalogue | Every event published and consumed: full CloudEvents type, topic, key, payload, producer, consumers. |
Related pages outside the pack: Use cases, Subdomain classification, Integration and the event catalogue.
The code wins. Domain rules come from internal/domain/slotplan and
internal/domain/planning, the use cases from internal/application/usecases,
the wiring from cmd/api/main.go, the schema from
internal/adapters/outbound/postgres/migrations/0001_slotting_schema.up.sql,
the REST contract from apis/openapi.yaml, the event contract from
apis/asyncapi.yaml and internal/adapters/outbound/kafka/encoder.go, 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 web/ remote (slotting_mfe) is packaged as its own image; it is
described on Runbook.
Pages for the MCP server and the analytics read side are not part of this
pack. Edges that depend on them are labelled planned wherever they appear.
:::