DDD artifacts (ddd-crew)
The strategic and tactical design of product-content, drawn with the
ddd-crew tools plus UML and ER diagrams. Every
diagram is Mermaid, derived from the code and ADRs on this branch, and carries a
Source: line naming the files it came from. The starting material was the
hand-written pack of the warehouse-docs aggregator
(Product Content),
re-checked against the code: where the model and the code differ, these pages follow
the code and say so.
| 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 Generic. |
| 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 storefront map: patterns per edge, with the built status of each side. |
| Aggregate design canvas | Aggregate Design Canvas v1.1 | ProductContent and CategoryTree: states, invariants, commands, events, 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 | Process-level boards with the sticky-note colours, plus hotspots and their resolution. |
| Ubiquitous language | Glossary | Every term with the code identifier that implements it. |
| Class diagrams | UML class diagram | Domain types, and the hexagonal ports with the adapters that exist. |
| Entity-relationship diagram | ER diagram | The Postgres schema created by 0001_product_content_schema.up.sql: six tables and their keys. |
| Sequence diagrams | UML sequence diagram | Create and publish, a rejected publish, a category edit, retire on discontinue and the consumer retry path. |
| 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/content,
internal/domain/category and internal/domain/shared, 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 A2A agent (ADR 0006) and the MCP server (ADR 0008) are read surfaces over two existing queries and add no aggregate, entity or event of their own, so the pack has no page for them; they are on the API overview and MCP tools. There is no web remote. The application layer, the HTTP and Kafka adapters, the outbox relay and the database schema are covered by the pages above. :::