DDD artifacts (ddd-crew)
The strategic and tactical design of storefront-bff, drawn with the
ddd-crew tools plus UML and ER diagrams. Every
diagram is Mermaid, derived from the code and ADRs on develop, and carries a
Source: line naming the files it came from.
This service is a stateless composition edge: it has no aggregate, no table and no event. The pages say so plainly rather than inventing a model; the interesting content is the composition rules, the cookie state, the allowlist and the six upstream relationships.
| Artifact | ddd-crew tool / notation | What it shows |
|---|---|---|
| Core domain chart | Core Domain Charts | Where the BFF sits on differentiation vs complexity, and why it is Generic. |
| Bounded context canvas | Bounded Context Canvas v5 | Purpose, roles, every inbound and outbound message, business decisions. |
| Context map | Context Mapping | The BFF's edges to storefront-web and the six upstreams with the pattern on each. |
| Aggregate design canvas | Aggregate Design Canvas v1.1 | No aggregate: the canvas for the one thing that is state, the sf_state cookie value object. |
| Domain message flow | Domain Message Flow Modelling | The key scenarios as numbered command and query flows across the browser, the BFF and the upstreams. |
| EventStorming | EventStorming glossary | A purchase journey with the commands the BFF relays, the policies it applies and the hotspots. |
| Ubiquitous language | Glossary | Every term with the code identifier that implements it. |
| Class diagrams | UML class diagram | The composition types, the use-case Gateway, the one port and the adapters. |
| Entity-relationship diagram | ER diagram | No tables; the logical identifiers the cookie holds and the upstream resources they point to. |
| Sequence diagrams | UML sequence diagram | Add to cart, delivery dates, confirm checkout and order detail, with error branches. |
| Domain events | Event catalogue | None published or consumed, and what the BFF relays instead. |
Related pages outside the pack: Use cases, Subdomain classification, Integration and the API overview.
The code wins. The composition rules come from internal/domain/composition,
behaviour from internal/application/usecases, the edge contract from
apis/openapi.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 There is no business-context page: its content is folded into the Introduction. There is no MCP, A2A or analytics surface to document. :::