Skip to main content

DDD artifacts

Pricing (pricing, code PR, tier storefront, Core) owns what a shopper pays: the list price and sale windows per catalogue item (ItemPrice), the delivery charge per service tier (DeliveryChargeSchedule), a synthetic tax table (TaxTable), and the binding, immutable, expiring PriceQuote that checkout confirms against. One configured currency, integer minor units. The item master stays in the retail network's offer-availability context; pricing only references catalogItemId, kept current through CatalogItemCreated and CatalogItemDiscontinued. Promotions are a later phase.

The pages below follow the ddd-crew tools. Every identifier, route, event type and table on them was checked against the code of this repository; the business narrative is folded into the Introduction.

Pages​

PageWhat it holdsddd-crew tool it follows
Ubiquitous languageTerms, code identifiers, terms not to confuseBounded Context Canvas (language section)
Use casesEvery use case: trigger, inputs, invariants, errors, events(application layer, fleet convention)
Subdomain classificationWhy Core, and the neighbours' classes(strategic design)
Core Domain ChartWhy this context is CoreCore Domain Charts
Bounded Context CanvasPurpose, classification, roles, inbound and outbound messages, decisions, metricsBounded Context Canvas v5
Context MapEvery neighbour, direction and patternContext Mapping
Aggregate Design CanvasItemPrice, DeliveryChargeSchedule, TaxTable, PriceQuote: states, invariants, commands, eventsAggregate Design Canvas v1.1
Domain Message FlowPrice management, sale boundaries, quote issuing, discontinuationDomain Message Flow Modelling
EventStormingProcess-level boards with hotspotsEventStorming glossary & cheat sheet
Class DiagramDomain model, events and the hexagonal ports and adapters(UML, fleet convention)
Entity RelationshipThe Postgres schema (migration 0001), 13 tables(fleet convention)
Sequence DiagramsAdapter to Kafka for every command use case(UML, fleet convention)
Domain EventsPublished and consumed CloudEvents, with an example envelopeDomain Message Flow Modelling (message catalogue)

Where the design lives​

  • The aggregator. The cross-context view (storefront context map, glossary, model gap register) is in warehouse-docs; the model there (storefront/model/model.yaml) is the design source this pack started from. Where the code differs from the model, these pages follow the code.
  • The contracts. API overview and the event catalogue.
  • The decisions. The repository's seven ADRs, among them the assumptions where the model is silent (0002) and the A2A adapter (0007).
  • Neighbours. offer-availability owns the catalogue item this context prices; delivery-promise owns the service tiers a TierCharge names.