EventStorming (design level)
Notation from the ddd-crew EventStorming glossary and cheat sheet. Three live processes and the record of the finished migration, each read left to right. Hotspots are real, documented gaps (ADRs, code comments), not invented ones.
Legend
Source: ddd-crew cheat-sheet colours as specified for the fleet. Omits: nothing; this is the key for the four diagrams below.
1. Register and classify a SKU
Source: internal/application/usecases/register_product.go,
classify_product.go, writer.go, internal/domain/product/product.go,
internal/adapters/outbound/kafka/encoder.go; ADR 0001 (Consequences:
eventual consistency).
Omits: the rejection paths (400 slugs, 404 product-not-found) and the
consumers' own policies. ProductClassified is consumed by inventory-storage,
order-management, wes-work-planning, fulfillment-execution,
slotting-optimization and returns-processing, ProductRegistered by
inbound-receiving only, and ProductDescriptionChanged by nobody. The consumers'
code is on their develop branches (see
Downstream consumers).
2. Declare and measure the physical profile
Source: internal/application/usecases/physical_profile.go,
internal/domain/product/physical.go, ADR 0002 (Consequences);
slotting-optimization internal/adapters/inbound/kafka/product_consumer.go.
Omits: ErrStaleMeasurement and ErrMeasuredAtInFuture (see the
sequence diagrams).
3. Declare, retire and measure pack levels
Source: internal/application/usecases/pack_levels.go,
internal/domain/product/events.go, internal/adapters/outbound/kafka/encoder.go,
apis/asyncapi.yaml (ProductPackLevelDeclared, ProductPackLevelRetired,
ProductPackLevelMeasured), ADR 0011;
the consumers' code on their develop branches (see
Downstream consumers).
Omits: the rejection paths (404 pack-level-not-found, the GTIN invariants of
ADR 0011) and the consumers' own policies. ProductPackLevelDeclared and
ProductPackLevelRetired are consumed by seven contexts, ProductPackLevelMeasured
by slotting-optimization and wes-work-planning only; the other five ignore it by type.
4. Import legacy classifications (migration record, removed at stage E)
Source: ADR 0003 (stages A, B, E and Consequences). The importer and
ImportLegacyClassification were removed at stage E (2026-10-17), and
inventory-storage no longer publishes the legacy type: nothing in this
diagram runs today. The legacy-import hotspot is still real for the rows the
importer wrote (SourceLegacyImport in internal/domain/product/classification.go).
Omits: the processed-event claim and the retry loop of the former importer.
Sticky inventory
| Sticky | Kind | Code evidence |
|---|---|---|
| Master-data steward, dimensioning device, operator | Actor | REST callers of internal/adapters/inbound/http/handlers.go |
RegisterProduct, ClassifyProduct, DeclareDimensions, RecordMeasurement, DeclarePackLevel, RetirePackLevel, RecordPackLevelMeasurement | Command | internal/application/usecases/*.go |
Product | Aggregate | internal/domain/product/product.go |
ProductRegistered, ProductDescriptionChanged, ProductClassified, ProductDimensionsDeclared, ProductMeasured, ProductPackLevelDeclared, ProductPackLevelRetired, ProductPackLevelMeasured | Domain event (published) | internal/domain/product/events.go, internal/adapters/outbound/kafka/encoder.go |
| Publish every accepted change through the outbox | Policy | Writer.persist in writer.go, outbox.Relay |
| Product, classification, physical profile, product list | Read model | GetProduct, ListProducts in queries.go |
| inventory-storage, order-management, wes-work-planning, fulfillment-execution, slotting-optimization, inbound-receiving, returns-processing, pick-face-replenishment, network-inventory-planning | External system | their consumers of warehouse.product-master.events on develop |
| Late classification before first stow | Hotspot | ADR 0001, Consequences |
| No unclassify | Hotspot | Product has no method that removes a classification, and ADR 0004 lists no such event |
| Physical profile used by slotting-optimization only | Hotspot | ADR 0002, Consequences ("later phases"): no sibling consumes it for package weight, stow volume or cube capacity |
| Fixed 10 % tolerance, no measurement history | Hotspot | ADR 0002 rule 6 and Consequences |
New GTIN at an active level: Retired superseded, then Declared | Hotspot | ADR 0011 decision G7; apis/asyncapi.yaml (ProductPackLevelRetired) |
| ADR 0011 consumers that do not consume | Hotspot | ADR 0011 (Events) names process-path-management and labor-performance; neither repository handles a pack level type on develop, and labor-performance ADR 0035 says it does not |
legacy-import rows never reviewed | Hotspot | ADR 0003, Consequences; SourceLegacyImport stays a valid stored value |