Context Map
Following ddd-crew Context Mapping. This is seller-inbound's slice of the network-wide context map. Arrows point from upstream to downstream.
Upstream: what seller-inbound conforms to
Source: internal/adapters/inbound/kafka/consumers.go (topics and types consumed).
Downstream: who depends on seller-inbound
Source: internal/adapters/outbound/kafka/encoder.go (topic routing), internal/adapters/inbound/http/server.go (REST),
apis/asyncapi.yaml.
Omitted: the contexts with no edge to this one, which are Separate Ways: delivery-promise, customer-ordering,
linehaul-transportation, last-mile-delivery, shipping-and-tracking. The service also exposes a
read-only MCP server and A2A agent (API reference); they add no relationship.
Relationships
| Neighbour | Direction | Pattern | Channel | Messages | Why this pattern |
|---|---|---|---|---|---|
node-topology | U → D | Conformist | Kafka retailnetwork.node-topology.events | NodeRegistered, NodeOperationalProfileDeclared, NodeActivated, NodeSuspended, NodeRetired | A node's status, capabilities and inbound limits are node-topology's facts. Kept in node_inbound_views. |
offer-availability | U → D | Conformist | Kafka retailnetwork.offer-availability.events | CatalogItemPackagingDeclared, CatalogItemPackLevelRetired, ListingAvailabilityChanged | The packaging hierarchy and its GTINs are the catalogue's. Kept in catalog_pack_levels. ListingAvailabilityChanged is kept in listing_availability, the availability half of the placement DemandHeatView (ADR 0012). |
order-sourcing | U → D | Conformist | Kafka retailnetwork.order-sourcing.events | FulfillmentReleasedToNode, FulfillmentCancelled | A release is the observed demand and a cancel withdraws it; they are order-sourcing's facts. Kept in demand_heat_lines (ADR 0016). |
vendor-connectivity | U → D (SI downstream) | Customer/Supplier | Kafka retailnetwork.vendor-connectivity.events | InboundReceiptSubmitted | The receipt shape is the published language; seller-inbound states what it needs. |
vendor-connectivity | U → D (SI upstream) | Customer/Supplier | Kafka retailnetwork.seller-inbound.events | InboundShipmentLabelled, InboundShipmentShipped, InboundShipmentReceived | The Vendor API needs the manifest and the closing status; seller-inbound publishes what it needs. |
offer-availability | U → D (SI upstream) | Conformist (offer-availability conforms) | Kafka retailnetwork.seller-inbound.events | SellerSuspended, SellerReinstated, InboundShipmentReceived | A suspended seller's listings must not stay live (G48, ADR 0013); offer-availability suppresses and restores them. Received seller stock becomes owner-scoped listings from received (G51, ADR 0014). |
node-performance | U → D (SI upstream) | Conformist (node-performance conforms) | Kafka retailnetwork.seller-inbound.events | InboundShipmentShipped | The shipped instant starts the inbound timeliness metric; node-performance keeps what it needs. |
| Sellers (external) | U → D | Open Host Service | REST (seller-facing, no auth) | plans, shipments, cartons, labels | A published, versionable seller API. |
| Analytics | U → D | Published Language | Kafka retailnetwork.seller-inbound.analytics | four analytics-only events | No consumer inside the organisation. |
network-fulfillment (warehouse-systems fleet) | none | Separate Ways | none | none | The hard boundary: the fleet reads the manifest through the Vendor API of vendor-connectivity only. |
Notes on the patterns
- No Shared Kernel.
sscc,gtinandnodeIdare values copied from events; the GTIN and SSCC validation rules are re-implemented in each service that receives them (hereinternal/domain/shared/gs1). - Customer/Supplier in both directions with vendor-connectivity, by events only. There is no runtime cycle.
- No synchronous call. A plan against a cold read model is refused, not slowed (Integration).