Context Map
This page is generated from network/model/model.yaml by network/scripts/gen_pages.py. Edit the model, then regenerate; CI fails when the page and the model disagree.
Following the ddd-crew Context Mapping
notation. On every edge, U is upstream and D downstream; the pattern
names how the downstream relates to the upstream's model: OHS Open Host
Service, PL Published Language, CF Conformist, ACL Anti-Corruption
Layer, C/S Customer/Supplier. Thick arrows are Kafka events (CloudEvents
1.0), thin arrows synchronous in-organization REST calls. The map is split
into five views so each stays readable; an edge label such as CF 3e +REST
reads "Conformist, three events, plus a synchronous call". The table under the
views lists every edge with its messages.
The organizational seam
The network and the warehouse-systems fleet are two organizations. The only
channel between them is the Vendor API of vendor-connectivity.
Derived from: model.yaml → meta.hard_boundary,
contexts[vendor-connectivity].inbound; the fleet side from
IQVO/network-fulfillment internal/application/ports/ports.go on
origin/develop. Separate Ways at the messaging level: no Kafka topic is
shared in either direction. Details on
WMS/WES Integration.
Commerce view: promise, order, sourcing
Derived from: model.yaml → contexts[*].publishes[*].consumers, contexts[*].sync_calls, contexts[*].inbound[*].relationship.
Logistics view: topology, middle mile, last mile, tracking
Derived from: same sections as above.
Partner view: sellers, inbound shipments and receipts
seller-inbound is the proposed eleventh context (ADR 0009). It reaches the vendor only through vendor-connectivity.
Derived from: same sections as above.
Returns view: the authorization, the facts it reads and the restock
customer-returns is the twelfth context (ADR 0012). Its reverse-label call to shipping-and-tracking (POST /return-labels) and the vendor seam through vendor-connectivity (return advices in, the graded outcome back) are built on both sides and are edges of this map.
Derived from: same sections as above.
Feedback view: what feeds the two Core contexts
Derived from: same sections as above. Omitted from all views: analytics-only events, which have no integration consumer.
Every edge
| Upstream | Downstream | Pattern | Events (Kafka) | Synchronous calls |
|---|---|---|---|---|
customer-ordering | customer-returns | CF | CustomerOrderPlaced, ShopperNoticeDecided | - |
customer-ordering | delivery-promise | C/S | CustomerOrderPlaced, CustomerOrderCancelled | - |
customer-ordering | order-sourcing | C/S | CustomerOrderPlaced, CustomerOrderCancelled | - |
customer-ordering | shipping-and-tracking | C/S | - | qry GetShipTo (REST GET /orders/{orderId}/ship-to) |
customer-returns | offer-availability | CF | ReturnCompleted | - |
customer-returns | vendor-connectivity | CF | ReturnAuthorized, ReturnLabelIssued, ReturnCancelled | - |
delivery-promise | customer-ordering | ? + C/S | PromiseAtRisk, PromiseRevised, PromiseKept, PromiseBroken, PromiseUnkeepable | qry QuoteDeliveryOffers (REST POST /delivery-quotes); cmd MakePromise, ConfirmPromise, CancelPromise (REST POST /promises, POST /promises/{promiseId}/confirmations, POST /promises/{promiseId}/cancellations) |
delivery-promise | node-performance | CF | PromiseKept, PromiseBroken | - |
delivery-promise | order-sourcing | C/S | PromiseRevised, PromiseBookExhausted | - |
last-mile-delivery | delivery-promise | ? + CF | DeliveryWaveScheduled, DeliveryWaveCapacityChanged, DeliveryWaveCancelled, PackageInductionDeferred | - |
last-mile-delivery | order-sourcing | ? + CF | DeliveryWaveScheduled, WaveCostDeclared, WaveEmissionDeclared, DeliveryWaveCapacityChanged, DeliveryWaveCancelled | - |
last-mile-delivery | shipping-and-tracking | ? + CF | PackageOutForDelivery, StopEtaWindowAssigned, DeliveryAttempted, PackageReturnInitiated, DeliveryPointFlagged | - |
linehaul-transportation | delivery-promise | ? + CF | DepartureScheduled, DepartureCapacityChanged, DepartureCancelled, LoadDeparted, LoadArrived, BookingMoved, BookingFailed | - |
linehaul-transportation | last-mile-delivery | C/S | LoadArrived | - |
linehaul-transportation | order-sourcing | ? + CF | DepartureScheduled, DepartureCapacityChanged, DepartureCancelled, BookingMoved, BookingFailed | - |
linehaul-transportation | shipping-and-tracking | CF | LoadDeparted, LoadArrived | - |
node-performance | delivery-promise | CF | NodeScorecardUpdated, NodeTierEligibilityChanged | - |
node-performance | order-sourcing | CF | NodeScorecardUpdated | - |
node-performance | vendor-connectivity | C/S | - | qry GetScorecard (REST GET /scorecards/{nodeId}) |
node-topology | customer-returns | CF | NodeRegistered, NodeActivated, NodeSuspended, NodeRetired, ServiceAreaAssigned | - |
node-topology | delivery-promise | CF | NodeRegistered, NodeOperationalProfileDeclared, NodeActivated, NodeSuspended, NodeRetired, LaneOpened, LaneClosed, ServiceAreaAssigned, RegionDefined | - |
node-topology | last-mile-delivery | CF | NodeRegistered, ServiceAreaAssigned | - |
node-topology | linehaul-transportation | CF | NodeRegistered, NodeOperationalProfileDeclared, NodeActivated, NodeSuspended, NodeRetired, LaneOpened, LaneClosed | - |
node-topology | node-performance | CF | NodeRegistered, NodeOperationalProfileDeclared | - |
node-topology | offer-availability | CF | NodeRegistered, NodeActivated, NodeSuspended, NodeRetired | - |
node-topology | order-sourcing | CF | NodeRegistered, NodeOperationalProfileDeclared, NodeActivated, NodeSuspended, NodeRetired, LaneOpened, LaneCostDeclared, LaneEmissionDeclared, LaneClosed, ServiceAreaAssigned, RegionDefined | - |
node-topology | seller-inbound | CF | NodeRegistered, NodeOperationalProfileDeclared, NodeActivated, NodeSuspended, NodeRetired | - |
node-topology | shipping-and-tracking | CF | NodeRegistered, NodeActivated, NodeSuspended, NodeRetired, ServiceAreaAssigned | - |
node-topology | vendor-connectivity | ? + C/S + CF | NodeRegistered, NodeOperationalProfileDeclared, NodeActivated, NodeSuspended, NodeRetired | cmd RegisterNode, DeclareOperationalProfile (REST POST /nodes, PUT /nodes/{nodeId}/operational-profile) |
offer-availability | delivery-promise | CF | CatalogItemCreated, CatalogItemDiscontinued, ListingCreated, ListingAvailabilityChanged, ListingSuppressed, ListingRestored | - |
offer-availability | node-performance | CF | InventoryFeedApplied | - |
offer-availability | order-sourcing | CF | CatalogItemDiscontinued, ListingCreated, ListingAvailabilityChanged, ListingSuppressed, ListingRestored | - |
offer-availability | seller-inbound | CF | CatalogItemPackagingDeclared, CatalogItemPackLevelRetired, ListingAvailabilityChanged | - |
offer-availability | shipping-and-tracking | CF | CatalogItemCreated | - |
offer-availability | vendor-connectivity | C/S + CF | CatalogItemPackagingDeclared, CatalogItemPackLevelRetired, ListingCreated | cmd ApplyInventoryFeed (REST POST /inventory-feeds) |
order-sourcing | customer-ordering | ? + CF | FulfillmentLocked, FulfillmentShipped, FulfillmentUnsourceable, FulfillmentCancelled, FulfillmentCancelRefused | - |
order-sourcing | customer-returns | CF | FulfillmentReleasedToNode, FulfillmentLocked | - |
order-sourcing | delivery-promise | ? + C/S | FulfillmentLocked, FulfillmentShipped, FulfillmentUnsourceable | - |
order-sourcing | linehaul-transportation | C/S | FulfillmentReleasedToNode, FulfillmentReassigned, FulfillmentLocked, FulfillmentCancelled | - |
order-sourcing | seller-inbound | CF | FulfillmentReleasedToNode, FulfillmentCancelled | - |
order-sourcing | vendor-connectivity | C/S | FulfillmentReleasedToNode, FulfillmentReleaseWithdrawn, FulfillmentCancelled | - |
seller-inbound | node-performance | CF | InboundShipmentShipped | - |
seller-inbound | offer-availability | CF | SellerSuspended, SellerReinstated, InboundShipmentReceived | - |
seller-inbound | vendor-connectivity | C/S | InboundShipmentLabelled, InboundShipmentShipped, InboundShipmentReceived | - |
shipping-and-tracking | customer-ordering | ? + CF | LabelIssued, LabelVoided, PackageScanned, PackageDelivered, PackageExceptionRaised, PackageReturned, PackageLost, PackageEtaWindowAssigned, PackageDeliveryPointFlagged | - |
shipping-and-tracking | customer-returns | C/S | - | cmd IssueReturnLabel (REST POST /return-labels) |
shipping-and-tracking | delivery-promise | ? + CF | PackageDelivered, PackageExceptionRaised, PackageReturned, PackageLost, PackageHandedToCarrier, PackageReadyForCollection | - |
shipping-and-tracking | last-mile-delivery | ? | LabelIssued | - |
shipping-and-tracking | linehaul-transportation | ? + CF | LabelIssued, LabelVoided | - |
shipping-and-tracking | node-performance | CF | PackageHandedOver | - |
shipping-and-tracking | order-sourcing | CF | PackageDelivered | - |
shipping-and-tracking | vendor-connectivity | C/S | - | cmd IssueLabel (REST POST /labels) |
vendor-connectivity | customer-returns | C/S | VendorReturnOutcomeSubmitted | - |
vendor-connectivity | node-performance | CF | VendorOnboarded, PurchaseOrderIssued, PurchaseOrderAccepted, PurchaseOrderRejected, PurchaseOrderExpired, VendorShipmentConfirmed, SubmissionProcessed, InboundReceiptSubmitted | - |
vendor-connectivity | order-sourcing | C/S | PurchaseOrderAccepted, PurchaseOrderRejected, PurchaseOrderExpired, VendorShipmentConfirmed | - |
vendor-connectivity | seller-inbound | C/S | InboundReceiptSubmitted | - |
vendor-connectivity | shipping-and-tracking | C/S | VendorShipmentConfirmed | - |
vendor-connectivity | network-fulfillment (warehouse-systems) | OHS + PL / CF + ACL | none (no shared topic) | Vendor API, called by the downstream |
Why these patterns
node-topology,linehaul-transportation,last-mile-delivery,offer-availabilityandnode-performanceare upstream of the two Core contexts, which conform to their events. Their facts (a node's profile, a departure's remaining capacity, a wave's stops) are not negotiable by the promise; the promise keeps local, event-fed copies and makes no synchronous call on its hot path.customer-ordering→delivery-promiseis Customer/Supplier. Checkout needs an answer inside the shopper's request, so it calls the promise API; the promise context sets the contract.order-sourcing↔vendor-connectivityis Customer/Supplier in both directions by event. Sourcing decides (release, cancel); the vendor protocol reports what the vendor did (accepted, rejected, expired, shipped).vendor-connectivityis a customer ofnode-topology,offer-availabilityandshipping-and-tracking. It is a gateway: it validates and times a vendor's write, then hands it to the owner of the fact. It never owns node profiles, availability or labels itself.shipping-and-tracking→customer-orderingis a restricted Customer/Supplier read. The label needs the address; nothing else does.seller-inbound↔vendor-connectivityis Customer/Supplier in both directions by event. The shipment manifest goes out asInboundShipmentShipped; the vendor's carton-level answer comes back asInboundReceiptSubmitted. The vendor never callsseller-inbound: the Vendor API stays the only channel, and the seller never reaches the vendor.seller-inboundconforms tonode-topologyandoffer-availability. A node's inbound limits and a catalogue item's packaging hierarchy are their facts;seller-inboundkeeps local, event-fed copies (NodeInboundView,CatalogPackagingView) and makes no synchronous call.customer-returnsconforms tocustomer-ordering,node-topologyandorder-sourcing, andoffer-availabilityconforms to it. Whether a group may be returned, which returns centre serves its region and which node fulfilled it are their facts;customer-returnskeeps local, event-fed copies (OrderGroupView,ReturnsNetworkView) and never calls them back. ItsReturnCompletedis a restock fact thatoffer-availabilityapplies to the owner listing.