Skip to main content

Context Map

As built

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​

NeighbourDirectionPatternChannelMessagesWhy this pattern
network-fulfillment (warehouse-systems, vendor V-WS; Supporting in the fleet, external)VC upstream, NF downstreamOHS + PL here; Conformist + ACL downstreamVendor API REST, apis/vendor-connectivity/openapi.yamlCommands: RegisterVendorNode, DeclareNodeProfile, SubmitInventory, SubmitAcknowledgement, RequestLabel, SubmitShipmentConfirmation. Queries: PollPurchaseOrders, GetPurchaseOrder, GetTransaction, GetNode, GetScorecardMany 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 actorUIREST POST /vendorsOnboardVendorOnboarding is a human act inside the network, not part of the vendor protocol.
order-sourcing (Core)OS upstream for releasesCustomer/SupplierKafka retailnetwork.order-sourcing.eventsFulfillmentReleasedToNode, FulfillmentCancelled, FulfillmentReleaseWithdrawnOrder-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 answersCustomer/SupplierKafka retailnetwork.vendor-connectivity.eventsPurchaseOrderAccepted, PurchaseOrderRejected, PurchaseOrderExpired, VendorShipmentConfirmedOrder-sourcing's lock and reassignment depend on these facts; the payload carries assignmentId and releaseNo for it.
node-topology (Supporting)NT upstreamConformistKafka retailnetwork.node-topology.eventsNodeRegistered, NodeActivated, NodeSuspended, NodeRetiredThe 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 CustomerREST (in-org) POST /nodes, PUT /nodes/{nodeId}/operational-profileRegisterNode, DeclareOperationalProfileVendor node and profile writes are relayed to their owner; node-topology lists this context as a Customer.
offer-availability (Supporting)OA upstreamConformistKafka retailnetwork.offer-availability.eventsListingCreatedListings are owned there; this context keeps a ListingView.
offer-availability (Supporting)OA upstream (supplier of the service)Customer/Supplier, VC is the CustomerREST (in-org) POST /inventory-feedsApplyInventoryFeedInventory feeds are applied by their owner.
shipping-and-tracking (Generic)ST upstream (supplier of the service)Customer/Supplier, VC is the CustomerREST (in-org) POST /labelsIssueLabelOnly shipping-and-tracking may see the ship-to address (ADR 0006); this context passes back only labelRef, trackingNumber, carrier.
shipping-and-tracking (Generic)VC upstreamCustomer/SupplierKafka retailnetwork.vendor-connectivity.eventsVendorShipmentConfirmedStarts the package journey on the shipping side.
node-performance (Supporting)VC upstreamConformist (NP downstream)Kafka retailnetwork.vendor-connectivity.eventsVendorOnboarded, PurchaseOrderIssued, PurchaseOrderAccepted, PurchaseOrderRejected, PurchaseOrderExpired, VendorShipmentConfirmed, SubmissionProcessedNode-performance measures from observed facts and takes them as published.
node-performance (Supporting)NP upstream (supplier of the service)Customer/Supplier, VC is the CustomerREST (in-org) GET /scorecards/{nodeId}GetScorecardA 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.yaml are versioned as a contract. Internal events (PurchaseOrderIssued and 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-connectivity ADR 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.

NeighbourDirectionPatternChannelMessagesWhy
seller-inboundU → D (VC downstream)Customer/SupplierKafka retailnetwork.seller-inbound.eventsInboundShipmentLabelled, InboundShipmentShipped, InboundShipmentReceivedThe Vendor API needs the carton manifest and the shipment's closing status; seller-inbound publishes what it needs.
seller-inboundU → D (VC upstream)Customer/SupplierKafka retailnetwork.vendor-connectivity.eventsInboundReceiptSubmittedThe vendor's carton-level answer is relayed; seller-inbound applies it.
offer-availabilityU → DConformistKafka retailnetwork.offer-availability.eventsCatalogItemPackagingDeclared, CatalogItemPackLevelRetiredPackaging belongs to the catalogue.
node-performanceU → D (NP downstream)ConformistKafka retailnetwork.vendor-connectivity.eventsInboundReceiptSubmitted (besides the seven listed above)Inbound timeliness and accuracy observations.
network-fulfillment (fleet)Vendor APIOHS + PLRESTGET /vendor/inbound-shipments, GET /vendor/inbound-shipments/{shipmentId}, POST /vendor/inbound-receiptsThe seam is unchanged: the fleet calls the Vendor API and nothing else.