Skip to main content

Vendor Connectivity

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.

Supporting

Vendor Connectivity (vendor-connectivity, code VC, tier partner) is the retail network's Open Host Service for the vendors that operate its fulfillment nodes. It publishes the Vendor API, whose JSON schemas are the Published Language: vendors register nodes, declare their operational profile, send inventory feeds, poll purchase orders, acknowledge each one in full before ackBy, request labels and confirm shipment. Every asynchronous write returns 202 with a transactionId that the vendor reconciles. Inside the network the context turns an order-sourcing release into a PurchaseOrder, runs its clock, and reports the vendor's answer back as events. The warehouse-systems fleet is vendor V-WS; its network-fulfillment context calls this API as a Conformist with an Anti-Corruption Layer, and this API is the only channel between the two organizations.

Pages​

PageWhat it coversddd-crew tool
Business ContextThe problem, the actors, the decisions, what is out of scope—
Ubiquitous LanguageTerms, code identifiers, and the fleet translation table—
Core Domain ChartWhy this context is Supportingcore-domain-charts
Bounded Context CanvasPurpose, roles, inbound and outbound messages, decisionsbounded-context-canvas
Context MapEvery neighbour with direction and patterncontext-mapping
Aggregate Design CanvasVendorAccount, PurchaseOrder, Submissionaggregate-design-canvas
Domain EventsEleven published events, eleven consumed, including the proposed inbound ones (ADR 0009)—
Domain Message FlowHappy path, refusal, node onboarding, failed transactiondomain-message-flow-modelling
EventStormingProcess-level boards with hotspotseventstorming-glossary-cheat-sheet
Use CasesOne section per command, errors mapped to HTTP—
Class DiagramProposed domain types and the hexagonal layout—
Entity RelationshipProposed Postgres schema—
Sequence DiagramsOne runtime sequence per command—

Service and operations​

  • Service: IQVO/vendor-connectivity on develop (0253f45, 2026-10-26): binaries cmd/api (REST) and cmd/mcp (read-only MCP), and the console remote in web/.
  • Deployment: wired in warehouse-infra develop: a terraform/apps.yaml entry (database: true, frontend_remote: vendor_connectivity_mfe) and helm-values/vendor-connectivity.yaml (MCP enabled, gateway path /api/mcp/vendor-connectivity). The cluster itself was not checked in this refresh.
  • Observability: service ADR 0008, Adopt the fleet observability standard, Accepted 2026-10-26. Logs, metrics and traces leave over OTLP to the otel-collector (OTEL_EXPORTER_OTLP_ENDPOINT, chart default otel-collector.observability.svc.cluster.local:4317; OTEL_SERVICE_NAME). The Tier-2 business counter is vendor.submissions.processed (unit {submission}, in internal/adapters/outbound/telemetry/submission_metrics.go), with attribute outcome = succeeded or failed and reason on the outcomes that are not a success. The dashboard queries it as vendor_submissions_processed_total in warehouse-infra's terraform/dashboards/contexts/vendor-connectivity.json, by outcome.

Elsewhere​

  • Read-only MCP server (service ADR 0006): cmd/mcp, a second binary serving Streamable HTTP on :8090 with no auth; it sources this context's own reads and nothing that writes. Nine tools: get_inbound_shipment, get_node_scorecard, get_purchase_order, get_transaction, get_vendor, get_vendor_node, list_vendor_nodes, poll_inbound_shipments, poll_purchase_orders. The gateway (Kong) exposes it at /api/mcp/vendor-connectivity, rewritten to the server's /mcp mount.
  • Console remote (service ADR 0007): web/, a Vite + React Module Federation remote — federation container vendor_connectivity_mfe, gateway mount /mfes/vendor-connectivity/, dev/preview port 4021 — read-only screens over the existing REST reads, calling only this context's API.
  • The Vendor API contract: apis/vendor-connectivity/openapi.yaml, rendered under API reference. The protocol in prose is on Vendor API.
  • How the fleet meets this API: WMS/WES integration and Fleet changes.
  • Decisions: ADR 0005, vendor acceptance is the path lock, ADR 0006, PII confinement, ADR 0003, declared and measured capability, ADR 0004, parcel nodes are network-operated.
  • Where the context sits among the twelve: Context Map.