Skip to main content

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​

NeighbourDirectionPatternChannelMessagesWhy this pattern
node-topologyU → DConformistKafka retailnetwork.node-topology.eventsNodeRegistered, NodeOperationalProfileDeclared, NodeActivated, NodeSuspended, NodeRetiredA node's status, capabilities and inbound limits are node-topology's facts. Kept in node_inbound_views.
offer-availabilityU → DConformistKafka retailnetwork.offer-availability.eventsCatalogItemPackagingDeclared, CatalogItemPackLevelRetired, ListingAvailabilityChangedThe 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-sourcingU → DConformistKafka retailnetwork.order-sourcing.eventsFulfillmentReleasedToNode, FulfillmentCancelledA release is the observed demand and a cancel withdraws it; they are order-sourcing's facts. Kept in demand_heat_lines (ADR 0016).
vendor-connectivityU → D (SI downstream)Customer/SupplierKafka retailnetwork.vendor-connectivity.eventsInboundReceiptSubmittedThe receipt shape is the published language; seller-inbound states what it needs.
vendor-connectivityU → D (SI upstream)Customer/SupplierKafka retailnetwork.seller-inbound.eventsInboundShipmentLabelled, InboundShipmentShipped, InboundShipmentReceivedThe Vendor API needs the manifest and the closing status; seller-inbound publishes what it needs.
offer-availabilityU → D (SI upstream)Conformist (offer-availability conforms)Kafka retailnetwork.seller-inbound.eventsSellerSuspended, SellerReinstated, InboundShipmentReceivedA 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-performanceU → D (SI upstream)Conformist (node-performance conforms)Kafka retailnetwork.seller-inbound.eventsInboundShipmentShippedThe shipped instant starts the inbound timeliness metric; node-performance keeps what it needs.
Sellers (external)U → DOpen Host ServiceREST (seller-facing, no auth)plans, shipments, cartons, labelsA published, versionable seller API.
AnalyticsU → DPublished LanguageKafka retailnetwork.seller-inbound.analyticsfour analytics-only eventsNo consumer inside the organisation.
network-fulfillment (warehouse-systems fleet)noneSeparate WaysnonenoneThe hard boundary: the fleet reads the manifest through the Vendor API of vendor-connectivity only.

Notes on the patterns​

  • No Shared Kernel. sscc, gtin and nodeId are values copied from events; the GTIN and SSCC validation rules are re-implemented in each service that receives them (here internal/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).