Skip to main content

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.

Artifactddd-crew tool / notationWhat it shows
Core domain chartCore Domain ChartsWhere the context sits on business differentiation versus model complexity, and why it is Supporting
Bounded context canvasBounded Context Canvas v5Purpose, classification, roles, every inbound and outbound message, decisions, metrics
Context mapContext MappingThe context's slice of the storefront map, with the pattern of every edge
Aggregate design canvasAggregate Design Canvas v1.1No aggregate by decision: the canvas applied to ProductView and CategoryView
Domain message flowDomain Message Flow ModellingSearch, the three feeds and the rebuild as numbered flows
EventStormingEventStorming glossary and cheat sheetProcess-level boards with the hotspots and how the code resolved them
Ubiquitous languageGlossaryEvery term with the code identifier that implements it
Class diagramUML class diagramDomain types, the ports and the adapters that exist
Entity relationshipER diagramThe Postgres schema of migration 0001_product_discovery_schema
Sequence diagramsUML sequence diagramSearch, get product, list categories, a fold, a dead letter and the rebuild
Domain eventsEvent catalogueThe 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. :::