Context Map
Derived from network/model/model.yaml. This context's service is built; the model carries its as-built contracts, and identifiers (Err... names, routes, CloudEvents types) are the names the service uses.
Following ddd-crew Context Mapping. This is vendor-connectivity's slice of the network context map. Arrows point from upstream (U) to downstream (D). Abbreviations: OHS = Open Host Service, PL = Published Language, CF = Conformist, ACL = Anti-Corruption Layer, C/S = Customer/Supplier.
The vendor protocol and sourcing
Derived from: model.yaml → contexts[vendor-connectivity].inbound, .publishes, external[network-fulfillment], meta.hard_boundary; contexts[order-sourcing].inbound.
Relays, master data and measurement
Derived from: model.yaml → contexts[vendor-connectivity].inbound,
.consumes, .publishes, .sync_calls; the matching inbound rows of
contexts[order-sourcing], contexts[node-topology],
contexts[offer-availability], contexts[shipping-and-tracking],
contexts[node-performance]; external[network-fulfillment];
meta.hard_boundary.
order-sourcing, shipping-and-tracking and node-performance appear
twice, once on each side, because each is upstream for one relationship
and downstream for another.
Omitted: the four contexts with no edge to this one (delivery-promise,
customer-ordering, linehaul-transportation, last-mile-delivery),
which are Separate Ways from this context's point of view; the analytics
consumer of PurchaseOrderCancelled; Kafka and Postgres as
infrastructure. The path parameter {nodeId} is written nodeId inside
the diagram. "Rejected, Expired" and "Activated, Suspended, Retired"
abbreviate the full event names listed in the table.
Relationships
| Neighbour | Direction | Pattern | Channel | Messages | Why this pattern |
|---|---|---|---|---|---|
network-fulfillment (warehouse-systems, vendor V-WS; Supporting in the fleet, external) | VC upstream, NF downstream | OHS + PL here; Conformist + ACL downstream | Vendor API REST, apis/vendor-connectivity/openapi.yaml | Commands: RegisterVendorNode, DeclareNodeProfile, SubmitInventory, SubmitAcknowledgement, RequestLabel, SubmitShipmentConfirmation. Queries: PollPurchaseOrders, GetPurchaseOrder, GetTransaction, GetNode, GetScorecard | Many vendors, one contract. The network will not tailor its protocol per vendor, so it publishes one; each vendor conforms and protects its own model behind an ACL. This is the only channel between the two organizations (meta.hard_boundary): no topic is shared and the network never calls the fleet. |
| Network partner managers (human) | upstream actor | UI | REST POST /vendors | OnboardVendor | Onboarding is a human act inside the network, not part of the vendor protocol. |
| order-sourcing (Core) | OS upstream for releases | Customer/Supplier | Kafka retailnetwork.order-sourcing.events | FulfillmentReleasedToNode, FulfillmentCancelled, FulfillmentReleaseWithdrawn | Order-sourcing decides; this context turns a release into a purchase order. Both sides are in one organization and negotiate the release payload. |
| order-sourcing (Core) | VC upstream for vendor answers | Customer/Supplier | Kafka retailnetwork.vendor-connectivity.events | PurchaseOrderAccepted, PurchaseOrderRejected, PurchaseOrderExpired, VendorShipmentConfirmed | Order-sourcing's lock and reassignment depend on these facts; the payload carries assignmentId and releaseNo for it. |
| node-topology (Supporting) | NT upstream | Conformist | Kafka retailnetwork.node-topology.events | NodeRegistered, NodeActivated, NodeSuspended, NodeRetired | The node registry is master data; this context keeps a VendorNodeView as published. |
| node-topology (Supporting) | NT upstream (supplier of the service) | Customer/Supplier, VC is the Customer | REST (in-org) POST /nodes, PUT /nodes/{nodeId}/operational-profile | RegisterNode, DeclareOperationalProfile | Vendor node and profile writes are relayed to their owner; node-topology lists this context as a Customer. |
| offer-availability (Supporting) | OA upstream | Conformist | Kafka retailnetwork.offer-availability.events | ListingCreated | Listings are owned there; this context keeps a ListingView. |
| offer-availability (Supporting) | OA upstream (supplier of the service) | Customer/Supplier, VC is the Customer | REST (in-org) POST /inventory-feeds | ApplyInventoryFeed | Inventory feeds are applied by their owner. |
| shipping-and-tracking (Generic) | ST upstream (supplier of the service) | Customer/Supplier, VC is the Customer | REST (in-org) POST /labels | IssueLabel | Only shipping-and-tracking may see the ship-to address (ADR 0006); this context passes back only labelRef, trackingNumber, carrier. |
| shipping-and-tracking (Generic) | VC upstream | Customer/Supplier | Kafka retailnetwork.vendor-connectivity.events | VendorShipmentConfirmed | Starts the package journey on the shipping side. |
| node-performance (Supporting) | VC upstream | Conformist (NP downstream) | Kafka retailnetwork.vendor-connectivity.events | VendorOnboarded, PurchaseOrderIssued, PurchaseOrderAccepted, PurchaseOrderRejected, PurchaseOrderExpired, VendorShipmentConfirmed, SubmissionProcessed | Node-performance measures from observed facts and takes them as published. |
| node-performance (Supporting) | NP upstream (supplier of the service) | Customer/Supplier, VC is the Customer | REST (in-org) GET /scorecards/{nodeId} | GetScorecard | A vendor reads its scorecard through the Vendor API; this context relays it. |
Notes on the patterns
- Open Host Service + Published Language toward vendors. The schemas
in
openapi.yamlare versioned as a contract. Internal events (PurchaseOrderIssuedand the rest) are a different language for in-organization consumers and never reach a vendor. - The fleet's side. network-fulfillment is Conformist (it cannot change
the protocol) and keeps an ACL (
ports.NetworkGateway), so no network term crosses into the rest of the fleet. The term mapping is on the Ubiquitous Language page and, fleet-wide, on WMS/WES integration. - Relay, not ownership. For nodes, profiles, inventory and labels this context is a Customer of the owning context. It validates the vendor's right to act and turns a synchronous in-org answer into a transaction outcome; it does not keep a second copy of the truth.
- No Shared Kernel. No code or table is shared with any neighbour.
Seller inbound
Built, ADR 0009 as realized by
vendor-connectivityADR 0005 (inbound shipments, inbound receipts and catalogue packaging). This section is the delta the seller-inbound design added to this page; where the service decided differently, the text below says so.
| Neighbour | Direction | Pattern | Channel | Messages | Why |
|---|---|---|---|---|---|
seller-inbound | U → D (VC downstream) | Customer/Supplier | Kafka retailnetwork.seller-inbound.events | InboundShipmentLabelled, InboundShipmentShipped, InboundShipmentReceived | The Vendor API needs the carton manifest and the shipment's closing status; seller-inbound publishes what it needs. |
seller-inbound | U → D (VC upstream) | Customer/Supplier | Kafka retailnetwork.vendor-connectivity.events | InboundReceiptSubmitted | The vendor's carton-level answer is relayed; seller-inbound applies it. |
offer-availability | U → D | Conformist | Kafka retailnetwork.offer-availability.events | CatalogItemPackagingDeclared, CatalogItemPackLevelRetired | Packaging belongs to the catalogue. |
node-performance | U → D (NP downstream) | Conformist | Kafka retailnetwork.vendor-connectivity.events | InboundReceiptSubmitted (besides the seven listed above) | Inbound timeliness and accuracy observations. |
network-fulfillment (fleet) | Vendor API | OHS + PL | REST | GET /vendor/inbound-shipments, GET /vendor/inbound-shipments/{shipmentId}, POST /vendor/inbound-receipts | The seam is unchanged: the fleet calls the Vendor API and nothing else. |