Skip to main content

DDD artifacts

The strategic and tactical design of dock-scheduling follows the ddd-crew tools. Each page below is checked against the code of this repository: every Mermaid diagram carries a Source: line naming the files it was drawn from, and where the yard design model in the central documentation site and the code differ, the code wins and the page says so.

Source: internal/domain/, internal/application/, internal/adapters/, migrations/, apis/, ADR 0001 and ADR 0002.

PageWhat it holdsddd-crew tool
Ubiquitous languageDock appointment, door window, door calendar, closure, arrival status, no-show, SCAC, CPT and the neighbour terms, with the Go identifier of eachglossary
Core domain chartWhy the context is Supporting, with its internal slicescore-domain-charts
Bounded context canvasPurpose, classification, roles, every inbound and outbound message, assumptionsbounded-context-canvas
Context mapEvery upstream and downstream neighbour with its pattern and channelcontext-mapping
Aggregate design canvasDockAppointment and DockCalendar: states, invariants, commands, eventsaggregate-design-canvas
Domain message flowBooking, arrival to completion, late ETA and no-show, closure and ASN cancellationdomain-message-flow-modelling
EventStormingProcess-level boards with hotspots and how each was settledeventstorming-glossary-cheat-sheet
Class diagramDomain types and the hexagonal ports and adaptersUML
Entity relationshipThe Postgres schema (OLTP and analytics)ER
Sequence diagramsOne runtime sequence per command use caseUML
Domain eventsThe fourteen published and ten consumed events with full CloudEvents typesevent catalogue

Also in this section: Use cases (one section per command: trigger, inputs, invariants, errors, events) and Subdomain classification.

In numbers (from the code)​

ItemCountWhere
Aggregates2: DockAppointment (5 states: BOOKED, CHECKED_IN, COMPLETED, CANCELLED, NO_SHOW), DockCalendarAggregate design canvas
Command use cases16 (eight on DockAppointment, four on DockCalendar, four on Carrier)Use cases
Published events14 (10 integration plus analytics twin, 4 analytics only)Events
Consumed events10 from four upstream topicsEvents
REST routes13 business routes plus /healthz, /readyz, /metrics on the API; 2 report routes on the reports binaryAPI reference
ADRs12ADR index