DDD artifacts (ddd-crew)
The strategic and tactical design of shopping-cart, drawn with the
ddd-crew tools plus UML and ER diagrams. Every
diagram is Mermaid, checked against the code on develop, and carries a
Source: line naming the files it came from. The aggregator holds an earlier,
model-derived version of this pack under
Shopping Cart in warehouse-docs;
where the two differ, these pages follow the code.
| 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, metrics. |
| Context map | Context Mapping | This context's slice of the fleet map: the pattern, channel and built status of each edge. |
| Aggregate design canvas | Aggregate Design Canvas v1.1 | Cart: states, invariants, commands, events, concurrency, and the three read models. |
| 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 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 the adapters that exist. |
| Entity-relationship diagram | ER diagram | The Postgres schema created by migration 0001_shopping_cart_schema: seven tables and their keys. |
| Sequence diagrams | UML sequence diagram | Add a line, quote delivery, close on checkout, the sweeps and the price feed, 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/cart, estimate and
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) is built, but it is a read surface over the same two queries and adds no aggregate, entity or event, so the pack has no page for it. The MCP server (ADR 0009) is the same kind of read surface and has no page either. The application layer, the HTTP, Kafka and scheduler adapters, the outbox relay and the database schema are covered by the pages above. :::