Skip to main content

Network Fulfillment

Supporting Subdomain

Network Fulfillment is the fleet's Anti-Corruption Layer between warehouse-systems and an external retail fulfillment network. The network sends purchase orders to a warehouse it does not own, and that warehouse must acknowledge each one in full or not at all within 24 hours. Since ADR 0009 the counterpart is the fleet's own retail-network service, which plays the network's role. The original learning target was a large retailer's public vendor platform API.

It owns the NetworkOrder aggregate: demand that arrived from outside with a deadline we did not choose, and the answer we owe the network by a deadline the network set. It also owns CapabilityOffer, the throughput-constrained quantity it would advertise (opt-in with CAPABILITY_OFFER_ENABLED=true). It is Conformist to the network upstream and an Anti-Corruption Layer for the fleet. It is also a Customer of order-management, which it asks over REST whether each deadline is feasible.

Study project, in-cluster network

This context is part of a DDD learning exercise. It is not affiliated with, endorsed by, or representative of any real retailer. The network it talks to is the study's own retail network (the retail network section): NETWORK_MODE=live is built (ADRs 0026, 0027, 0028) and warehouse-infra develop runs it against the in-cluster vendor-connectivity Service as vendor V-WS (helm-values/network-fulfillment.yaml, since 2026-10-25). stub stays the chart default and the test mode.

What its own pages describe
  • Inbound: a poller feeds network demand to ReceiveNetworkDemand. A read-only REST surface (/network-orders, /inbound-status, and /capability-offers when enabled), a shipment-confirmation command (POST /network-orders/{networkRef}/shipment-confirmation, ADR 0014), read-only MCP tools, and a web/ remote in warehouse-console (ADR 0010).
  • Outbound: REST to order-management (raise, release and cancel a held order; live), a REST read of inventory-storage usable stock for the capability offers (CAPABILITY_OFFER_ENABLED=true in warehouse-infra develop), and, in live mode, the retail network's Vendor API: the demand loop (purchase orders, acknowledgements, labels, shipment confirmations), the supply loop (node profile and inventory feed) and the inbound loop (seller shipments and receipts).
  • Events: with EVENT_PUBLISHER=kafka, seven CloudEvents types (com.warehouse.wes.network-fulfillment.networkorder.*) go to warehouse.network-fulfillment.events and to warehouse.network-fulfillment.analytics, through a transactional outbox when a database is configured. exception-management consumes the two alarm types AcknowledgementDeadlineAtRisk and OrphanedHoldCancelled (context map K57); the five NetworkOrder* types have no consumer by decision. The context consumes process-path-management's catalogue and CPT schedule and wes-work-planning's PathCapacityChanged into caches, and inbound-receiving's ReceiptCartonReceived for the inbound loop (ADR 0028, group network-fulfillment-inbound-receiving).

See the Bounded Context Canvas and Context Map for every edge and its status.

This context's pages​

Every page above except the Business Context and the Async API narrative is synced from the network-fulfillment repository (its docs/ddd/ directory).

Elsewhere​