DDD artifacts (ddd-crew)
The strategic and tactical design of product-discovery, drawn with the
ddd-crew tools plus UML and ER diagrams. Every diagram is Mermaid, derived from
the code and the ADRs on this branch, and carries a Source: line naming the files it came from. The context
has no aggregate and publishes no event, so the aggregate canvas is applied to its two projections and the
event pages describe consumed events only.
| Artifact | ddd-crew tool / notation | What it shows |
|---|---|---|
| Core domain chart | Core Domain Charts | Where the context sits on business differentiation versus model complexity, and why it is Supporting |
| Bounded context canvas | Bounded Context Canvas v5 | Purpose, classification, roles, every inbound and outbound message, decisions, metrics |
| Context map | Context Mapping | The context's slice of the storefront map, with the pattern of every edge |
| Aggregate design canvas | Aggregate Design Canvas v1.1 | No aggregate by decision: the canvas applied to ProductView and CategoryView |
| Domain message flow | Domain Message Flow Modelling | Search, the three feeds and the rebuild as numbered flows |
| EventStorming | EventStorming glossary and cheat sheet | Process-level boards with the hotspots and how the code resolved them |
| Ubiquitous language | Glossary | Every term with the code identifier that implements it |
| Class diagram | UML class diagram | Domain types, the ports and the adapters that exist |
| Entity relationship | ER diagram | The Postgres schema of migration 0001_product_discovery_schema |
| Sequence diagrams | UML sequence diagram | Search, get product, list categories, a fold, a dead letter and the rebuild |
| Domain events | Event catalogue | The eleven consumed CloudEvents with topic, key, fields and guards |
Related pages outside the pack: Use cases, Subdomain classification, Integration and the event catalogue.
:::note Sources of truth
The code wins. Domain rules come from internal/domain/productview, categoryview and search, 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. The central documentation site holds an earlier, model-derived version of these
pages under
warehouse-docs.
:::
:::info Not in this pack The A2A agent (ADR 0007) is a second inbound adapter over the same read use cases and adds no aggregate, entity or event, so it has no page of its own; it appears on the context map, the canvas, the class diagram and the sequence diagrams. The MCP server is a read-only inbound adapter (ADR 0009); there is no analytics read side. :::