Skip to main content

EventStorming (design level)

Synced from network-inventory-planning

This page is a copy of docs/docs/ddd/eventstorming.md on develop, derived from that repository's code. Edit it there, then re-sync.

Notation from the ddd-crew EventStorming glossary and cheat sheet. Hotspots are gaps visible in the code or ADRs, not invented ones.

Legend​

Source: ddd-crew cheat-sheet colours.

1. Sibling facts become a fail-closed snapshot​

Source: internal/adapters/inbound/kafka/consumers.go, internal/adapters/outbound/postgres/planning_repositories.go, internal/domain/planning/snapshot.go, internal/application/usecases/simulate_transfer_options.go

2. Approve, reserve, release the pick​

Source: internal/application/usecases/approve_transfer.go, transfer_facts.go, internal/domain/transfer/saga.go, approval.go, internal/adapters/inbound/kafka/transfer_reply_consumer.go

3. Floor and destination facts close the transfer​

Source: internal/application/usecases/transfer_facts.go, saga_health.go, internal/domain/transfer/workflow.go, cmd/network-inventory-planning/main.go

Hotspot H2 is precise: PICKED does emit TransferStateAdvanced, while IN_TRANSIT, ARRIVED, RECEIVED (and UNFULFILLABLE in diagram 2) do not.

Sticky inventory​

  • Read models: site_capability, site_sku_demand, published_capacity_plan, processed_events, inter_warehouse_transfer with transfer_audit, rebalance_runs, and the analytical fact tables (see Entity relationship).
  • Not on the board because not built: forecasting, auto-approval, route optimisation, dynamic order-site assignment.