Skip to main content

Node Topology

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

Node Topology (node-topology, code NT, tier logistics) is the authoritative registry of the network's physical shape. It holds every node: the vendor fulfillment centres, inbound cross-docks and returns centres, and the network's own sortation centres, delivery stations and air hubs. For each node it holds the type, the operator, the region, the time zone and the declared operational profile (handling time, operating hours, cutoffs, throughput cap). It also holds the directed lanes between nodes, the regions, and which delivery station serves which postal prefix (the service area). It decides nothing about a single order. Every promise, assignment and route in the network rests on the facts it publishes. It consumes no event and calls no other context. Nine CloudEvents types leave it on retailnetwork.node-topology.events.

This context's pages​

Pageddd-crew tool or notation it follows
Business ContextThe "why" behind the context (DDD Starter Modelling Process: Understand)
Ubiquitous LanguageGlossary, plus the fleet translation table
Core Domain Chartddd-crew core-domain-charts
Bounded Context Canvasddd-crew bounded-context-canvas v5
Context Mapddd-crew context-mapping
Aggregate Design Canvasddd-crew aggregate-design-canvas v1.1
Domain EventsCloudEvents 1.0 catalogue (event standard)
Domain Message Flowddd-crew domain-message-flow-modelling
EventStormingddd-crew eventstorming-glossary-cheat-sheet, process level
Use CasesApplication services, one per command
Class DiagramUML class diagram with DDD stereotypes, plus the hexagonal view
Entity RelationshipThe proposed Postgres schema
Sequence DiagramsUML sequence diagrams, one per command use case

The REST contract is apis/node-topology/openapi.yaml, rendered under the API reference.

Service and operations​

  • Service: IQVO/node-topology on develop (f53353f, 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: node_topology_mfe) and helm-values/node-topology.yaml (MCP enabled, gateway path /api/mcp/node-topology). The cluster itself was not checked in this refresh.
  • Observability: service ADR 0010, 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 topology.nodes.registered (unit {node}, in internal/adapters/outbound/telemetry/node_metrics.go), with attribute outcome = registered or rejected and reason on the outcomes that are not a success. The dashboard queries it as topology_nodes_registered_total in warehouse-infra's terraform/dashboards/contexts/node-topology.json, by outcome.

Elsewhere​

  • Read-only MCP server (service ADR 0008): cmd/mcp, a second binary serving Streamable HTTP on :8090 with no auth; it sources this context's own reads and nothing that writes. Six tools: get_node, get_region, list_lanes, list_nodes, list_regions, resolve_service_area. The gateway (Kong) exposes it at /api/mcp/node-topology, rewritten to the server's /mcp mount.
  • Console remote (service ADR 0009): web/, a Vite + React Module Federation remote — federation container node_topology_mfe, gateway mount /mfes/node-topology/, dev/preview port 4017 — read-only screens over the existing REST reads, calling only this context's API.
  • Node model: the network-wide view of node types, lane rules and service tiers.
  • ADR 0003: declared and measured capability and ADR 0004: parcel nodes are network-operated.
  • WMS/WES integration: how a warehouse-systems site becomes a vendor node, through the Vendor API only.
  • The domain-wide Context Map.