Skip to main content

DDD artifacts (ddd-crew)

The strategic and tactical design of vendor-connectivity, drawn with the ddd-crew tools plus UML and ER diagrams. The pages started from the aggregator's pack for this context (network/docs/contexts/vendor-connectivity/ in warehouse-docs) and were then checked against this repository's code: every identifier, route, event type and table was verified, the proposals the pack still carried were replaced by what is built, and every diagram carries a Source: line naming the files it came from. Nothing here was captured from a live run.

Artifactddd-crew tool / notationWhat it shows
Core domain chartCore Domain ChartsWhere this context sits on differentiation against complexity, and why it is Supporting.
Bounded context canvasBounded Context Canvas v5Purpose, roles, every inbound and outbound message, business decisions, and how the open questions were settled.
Context mapContext MappingThis context's slice of the retail network's map: the pattern of every edge.
Aggregate design canvasAggregate Design Canvas v1.1VendorAccount, PurchaseOrder and Submission: states, invariants, commands, events, concurrency.
Domain message flowDomain Message Flow ModellingAccepted and shipped, refused and reassigned, onboarding, and a failed or rate-limited transaction.
EventStormingEventStorming glossary and cheat sheetProcess boards with the sticky-note colours, plus hotspots marked resolved or open.
Ubiquitous languageGlossaryEvery term with the Go identifier that implements it, and the fleet translation table.
Class diagramsUML class diagramDomain types, events, use cases and read models, and the hexagonal ports and adapters.
Entity-relationship diagramER diagramThe Postgres schema created by the two migrations: aggregate tables, read models, outbox, inbox and idempotency keys.
Sequence diagramsUML sequence diagramOne sequence per command use case, with error, version-conflict and idempotency branches.
Domain eventsEvent catalogueEvery 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.

Sources of truth

The code wins. Domain rules come from internal/domain/vendor, purchaseorder, submission, network and inbound, behaviour from internal/application/usecases, the envelope from internal/adapters/outbound/kafka (the encoder) and the consumers in internal/adapters/inbound/kafka, 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 read-only MCP server (ADR 0006, tools), the A2A adapter (ADR 0009) and the web remote (web/, ADR 0007) are built, but they are read surfaces over the model and add no aggregate, entity or event of their own, so the pack has no pages for them. The aggregator's business-context page has no counterpart here; its content is folded into the Introduction. :::