Network Fulfillment
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.
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.
- Inbound: a poller feeds network demand to
ReceiveNetworkDemand. A read-only REST surface (/network-orders,/inbound-status, and/capability-offerswhen enabled), a shipment-confirmation command (POST /network-orders/{networkRef}/shipment-confirmation, ADR 0014), read-only MCP tools, and aweb/remote inwarehouse-console(ADR 0010). - Outbound: REST to
order-management(raise, release and cancel a held order; live), a REST read ofinventory-storageusable stock for the capability offers (CAPABILITY_OFFER_ENABLED=trueinwarehouse-infradevelop), 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 towarehouse.network-fulfillment.eventsand towarehouse.network-fulfillment.analytics, through a transactional outbox when a database is configured.exception-managementconsumes the two alarm typesAcknowledgementDeadlineAtRiskandOrphanedHoldCancelled(context map K57); the fiveNetworkOrder*types have no consumer by decision. The context consumesprocess-path-management's catalogue and CPT schedule andwes-work-planning'sPathCapacityChangedinto caches, andinbound-receiving'sReceiptCartonReceivedfor the inbound loop (ADR 0028, groupnetwork-fulfillment-inbound-receiving).
See the Bounded Context Canvas and Context Map for every edge and its status.
This context's pages
- Business Context: why
"selling capability to a network" is a domain problem rather than a REST
mapping, and why this is its own context rather than an adapter inside
order-management. - Ubiquitous Language: NetworkOrder, NetworkRef, NetworkProductId vs. SKU, LocalOrderId, requiredShipBy, acknowledgeBy, held order, CapabilityOffer.
- Core Domain Chart (ddd-crew core-domain-charts): why this context is Supporting.
- Bounded Context Canvas (ddd-crew bounded-context-canvas): purpose, classification, roles, inbound and outbound communication, business decisions and open questions.
- Context Map (ddd-crew context-mapping): every upstream and downstream relationship with its pattern, technology and status.
- Aggregate Design Canvas
(ddd-crew aggregate-design-canvas):
the
NetworkOrderaggregate, with its states, invariants and commands. - Domain Events: the seven
published events (
NetworkOrderReceived,NetworkOrderSubmitted,NetworkOrderAcknowledged,NetworkOrderRejected,NetworkOrderShipmentConfirmed,AcknowledgementDeadlineAtRisk,OrphanedHoldCancelled), the three consumed topics, and the spec-vs-code discrepancies found. - Domain Message Flow (ddd-crew domain-message-flow-modelling): key scenarios as commands, events and queries.
- EventStorming (ddd-crew eventstorming-glossary-cheat-sheet): process-level boards.
- Class Diagram: the domain model as it exists in the code.
- Entity Relationship: the persisted tables.
- Sequence Diagrams: the main runtime interactions.
- Async API: the Kafka integration in narrative form.
Every page above except the Business Context and the Async API narrative
is synced from the network-fulfillment repository (its docs/ddd/
directory).
Elsewhere
- Repository: github.com/IQVO/network-fulfillment.
Its ADRs live under
docs/adr/, notdocs/docs/adr/. - ADR 0001: Network Fulfillment as a bounded context, and its companion order-management ADR 0020.
- ADR index: links to this context's own decision records.
- Generated references on this site:
REST
and AsyncAPI, generated from
the real
apis/openapi.yamlandapis/asyncapi.yaml. - The fleet-wide Context Map shows where this context sits among the fleet's contexts.