Skip to main content

Node Performance

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 Performance (node-performance, code NP, tier partner) measures every node against what was asked of it. It listens to observed facts only: purchase orders issued, accepted, rejected and expired, shipments confirmed, packages handed over against requiredShipBy, promises kept or broken, and inventory feeds applied. From them it computes, per node and per rolling window (7 days and 30 days), an on-time handover rate, a late acknowledgement rate, a reject rate, an expiry rate, a promise-kept rate and the p95 feed freshness, and grades the node A to D. Below the observation minimum the scorecard stays PROVISIONAL. The grade feeds delivery-promise's handicap and order-sourcing's assignment cost through the NodeScorecardUpdated event. The 7-day scorecard also decides fast-tier eligibility (policy FastTierEligibility, ADR 0013): a node is suspended from SAME_DAY and NEXT_DAY when its graded on-time handover rate falls below 0.90 and reinstated after three successive recompute days at 0.95 or more, published as NodeTierEligibilityChanged and acted on by delivery-promise. This context never suspends a node (its status stays a node-topology decision) and never reads the vendor's declaration into a metric: the declaration is what the vendor says, the scorecard is what the network observes (ADR 0003). Vendors see their own scorecard only through vendor-connectivity (GET /vendor/nodes/{nodeId}/scorecard), which calls this context's GET /scorecards/{nodeId}.

This context's pages​

PageWhat it holdsddd-crew tool it follows
Business ContextThe business problem, actors, decisions and what is out of scope(narrative; feeds the canvas)
Ubiquitous LanguageScorecard, Grade, On-Time Handover Rate, Late Ack Rate, Declared vs Measured, plus neighbour termsBounded Context Canvas (Ubiquitous Language section)
Core Domain ChartWhy this context is Supportingcore-domain-charts
Bounded Context CanvasPurpose, classification, roles, inbound and outbound messages, decisions, assumptions, metrics, open questionsbounded-context-canvas v5
Context MapEvery upstream and downstream neighbour with its pattern and channelcontext-mapping
Aggregate Design CanvasThe NodeScorecard aggregateaggregate-design-canvas v1.1
Domain EventsThe 2 published and 13 consumed CloudEvents typesdomain-message-flow-modelling (message catalogue)
Domain Message FlowScenarios as commands, events and queries across contextsdomain-message-flow-modelling
EventStormingProcess-level boards with policies, read models and hotspotseventstorming-glossary-cheat-sheet
Use CasesRecordObservation and Recompute, their errors and idempotency(application layer; complements the aggregate canvas)
Class DiagramThe proposed domain model and its hexagonal ports and adapters(UML; complements the aggregate canvas)
Entity RelationshipThe proposed Postgres schema(persistence view; complements the aggregate canvas)
Sequence DiagramsAdapter → use case → aggregate → outbox → Kafka per use case(UML; complements the message flow)

The REST contract is apis/node-performance/openapi.yaml in the repository root: two read-only routes, GET /scorecards/{nodeId} and GET /scorecards?grade=.

Service and operations​

  • Service: IQVO/node-performance on develop (22497b7, 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_performance_mfe) and helm-values/node-performance.yaml (MCP enabled, gateway path /api/mcp/node-performance). 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 nodeperformance.scorecards.recomputed (unit {scorecard}, in internal/adapters/outbound/telemetry/scorecard_metrics.go), with attribute outcome = recomputed or failed and reason on the outcomes that are not a success. The dashboard queries it as nodeperformance_scorecards_recomputed_total in warehouse-infra's terraform/dashboards/contexts/node-performance.json, by outcome.

Elsewhere​

  • Read-only MCP server (service ADR 0007): cmd/mcp, a second binary serving Streamable HTTP on :8090 with no auth; it sources this context's own reads and nothing that writes. Two tools: get_scorecard, list_scorecards_by_grade. The gateway (Kong) exposes it at /api/mcp/node-performance, rewritten to the server's /mcp mount.
  • Console remote (service ADR 0008): web/, a Vite + React Module Federation remote — federation container node_performance_mfe, gateway mount /mfes/node-performance/, dev/preview port 4016 — read-only screens over the existing REST reads, calling only this context's API.
  • Domain vision and the network-wide Context Map.
  • ADR 0003: capability is declared and measured: why the scorecard sits next to the operational profile and never replaces it.
  • Promise model and Order assignment model: where the grade is used.
  • Vendor API: how a vendor reads its own scorecard.