Retail network · Supporting domain · EventStorming board
node-topology
Owns the physical shape of the retail network: its buildings (nodes), the lanes between them, the regions, and which delivery station serves each postal prefix.
- events published
- 11
- commands
- 11
- policies
- 33
- read models
- 6
- hot spots
- 4
The story in 5 key events
The pivotal events: the few that matter most, in the order they happen.
- Pivotal eventNode
Registered - Pivotal eventNode
Operational Profile Declared - Pivotal eventNode
Activated - Pivotal eventLane
Opened - Pivotal eventService
Area Assigned
Listens to (0): contexts whose events this one reacts to
none
Tells (10): contexts that react to its events
The board, row by row
11 rows, in the order the business story happens: the main path first, then how this context reacts to the others, then the clock. Rows are small stories; read each one left to right.
- Event
- Command
- Actor
- Aggregate
- Policy
- Read model
- External system
- Hot spot
- Opportunity
-
Define a region
A planner names a region with a short unique code. Every node and every postal-prefix assignment must belong to a region that exists.
ActorNetwork-ops plannerCommandDefineRegion POST /regionsAggregateRegionEventRegionDefined Systemdelivery-promise PolicyKeeps a copy of the regionSystemorder-sourcing PolicyKeeps a copy of the regionSource: application/usecases/regions.go · domain/region/region.go
-
Register a node
A planner, or the vendor-connectivity service for a vendor's building, registers a building. It starts as Proposed. The kind of building decides who may run it and what it can do.
ActorNetwork-ops plannerRead modelRegionsRead modelVendor node codes already takenCommandRegisterNode POST /nodesAggregateNodeEventNodeRegistered Systemoffer-availability PolicyStarts tracking the node as Proposed, so no listing is suppressed yetSystemdelivery-promise PolicyKeeps a copy of the node's type and regionSystemlast-mile- delivery PolicyKeeps the node only if it is a delivery stationSystemlinehaul-transportation PolicyKeeps the node and re-plans pickups on lanes that end at itSystemshipping-and- tracking PolicyNotes the node when it is a pickup pointSource: application/usecases/nodes.go · domain/node/node.go · domain/node/types.go
-
Declare how a node operates
The vendor or a planner declares opening hours, handling time, pickup cutoffs and a throughput cap. Each declaration is a new numbered revision that never overwrites an earlier one.
ActorNetwork-ops plannerCommandDeclareOperational PUT /nodes/{nodeId}/operational-profileProfile AggregateNodeEventNodeOperational Profile Declared Systemlinehaul-transportation PolicyRe-plans pickup departures from the node's cutoffsSystemdelivery-promise PolicyKeeps handling time, cutoffs and cap when the revision is newerSystemseller-inbound PolicyKeeps the node's carton limits to check shipments againstSystemnode-performance PolicyAcknowledges the event and changes nothingSource: application/usecases/nodes.go · domain/node/profile.go · 0007-inbound-limits-on-the-operational-profile.md
-
Put a node into service
A planner activates a Proposed or Suspended node. A fulfillment centre must first have a cutoff and a handling time above zero.
ActorNetwork-ops plannerCommandActivateNode POST /nodes/{nodeId}/activationsAggregateNodeEventNodeActivated Systemoffer-availability PolicyMarks the node sellable and restores listings suppressed for itSystemlinehaul-transportation PolicyGenerates the node's pickup departuresSystemdelivery-promise PolicyMarks the node active for promisingSystemshipping-and- tracking PolicyKeeps the node's stateSource: application/usecases/nodes.go · domain/node/node_lifecycle.go
-
Suspend a node
A planner pauses an active node and must give a reason. Its lanes and postal prefixes are left as they are; other contexts must treat them as unusable.
ActorNetwork-ops plannerCommandSuspendNode POST /nodes/{nodeId}/suspensionsAggregateNodeEventNodeSuspended Systemoffer-availability PolicySuppresses the node's live listingsSystemlinehaul-transportation PolicyCancels the node's future pickupsSystemdelivery-promise PolicyMarks the node suspendedSystemshipping-and- tracking PolicyKeeps the node's stateSource: application/usecases/nodes.go · domain/node/node_lifecycle.go · 0003-no-consumed-contracts-and-ohs-reads.md
-
Retire a node for good
A planner retires an active or suspended node. Retired is final: any later command on that node is refused.
ActorNetwork-ops plannerCommandRetireNode POST /nodes/{nodeId}/retirementsAggregateNodeEventNodeRetired Systemoffer-availability PolicySuppresses the node's live listingsSystemlinehaul-transportation PolicyCancels the node's future pickupsSystemseller-inbound PolicyMarks the node retired in its copySystemshipping-and- tracking PolicyKeeps the node's stateSource: application/usecases/nodes.go · domain/node/node_lifecycle.go
-
Open a lane between two nodes
A planner opens a ground or air lane. Both ends must be active, the pair of building types must be allowed, and no identical lane may already be open.
ActorNetwork-ops plannerRead modelOrigin and destination nodesRead modelOpen lanesCommandOpenLane POST /lanesAggregateLaneEventLaneOpened Systemlinehaul-transportation PolicyKeeps the lane and re-plans pickups at its originSystemdelivery-promise PolicyAdds the lane to the network graph it searchesSystemorder-sourcing PolicyAdds the lane to the network graph it searches -
Declare what a lane costs
A planner states the cost, in cents, of moving one package across an open lane. A newer declaration replaces the previous one. A lane never declared on publishes nothing.
ActorNetwork-ops plannerCommandDeclareLane POST /lanes/{laneId}/cost-declarationsCost AggregateLaneEventLaneCost Declared Systemorder-sourcing PolicyKeeps the latest cost per lane and prices candidate paths in centsSource: application/usecases/lanes.go · domain/lane/lane.go · 0014-lane-cost-declaration.md
-
Declare the carbon a lane emits
A planner states the carbon, in grams of CO2-equivalent, of moving one package-unit across an open lane on one departure. A newer declaration replaces the previous one. Nothing reads it yet.
ActorNetwork-ops plannerCommandDeclareLane POST /lanes/{laneId}/emission-declarationsEmission AggregateLaneEventLaneEmission Declared Source: application/usecases/lanes.go · domain/lane/lane.go · 0018-lane-emission-declaration.md
-
Close a lane
A planner closes an open lane. A closed lane is never reopened; a new lane gets a new identity.
ActorNetwork-ops plannerCommandCloseLane POST /lanes/{laneId}/closuresAggregateLaneEventLaneClosed Systemlinehaul-transportation PolicySchedules no new departure on the laneSystemdelivery-promise PolicyMarks the lane closed in its network graph -
Assign a postal prefix to a delivery station
A planner decides which delivery station serves a postal prefix. A later assignment must carry a higher version; the prefix takes the station's region.
ActorNetwork-ops plannerRead modelThe delivery stationRead modelIts regionCommandAssignService PUT /service-areas/{postalPrefix}Area AggregateServiceArea EventServiceArea Assigned Systemlast-mile- delivery PolicyKeeps the assignment when its version is higherSystemdelivery-promise PolicyKeeps the assignment when its version is higherSystemorder-sourcing PolicyKeeps the prefix-to-station assignmentSystemshipping-and- tracking PolicyKeeps the postal area's delivery mode and carrier optionsSource: application/usecases/servicearea.go · domain/servicearea/servicearea.go
Hot spots and opportunities
Open questions and known gaps, each taken from a decision record or a document in the repository, never invented. Opportunities are improvements the documentation already names.
- Hot spotBy design, a suspended or retired node keeps its open lanes and assigned prefixes. Nothing closes or reassigns them, so every reader must treat them as unusable.
- Hot spotA lane never costed reads zero but publishes nothing, so readers cannot tell 'free' from 'unknown' by the number alone.
- Hot spotA profile may name a time zone other than its node's. The model never says whether they must match.
- Hot spotAfter repeated failed sends (20 by default) an event is skipped, so a later event of the same node or lane can overtake it.
Opportunities
- OpportunityA declared lane cost is the first step toward costing paths in money. A measured cost per departure could later refine it.
This board is a reconstruction from the code and documentation of node-topology at origin/develop, not a workshop output. Roles are the ones the documentation names. How the boards were made.