Node Performance
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.
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
| Page | What it holds | ddd-crew tool it follows |
|---|---|---|
| Business Context | The business problem, actors, decisions and what is out of scope | (narrative; feeds the canvas) |
| Ubiquitous Language | Scorecard, Grade, On-Time Handover Rate, Late Ack Rate, Declared vs Measured, plus neighbour terms | Bounded Context Canvas (Ubiquitous Language section) |
| Core Domain Chart | Why this context is Supporting | core-domain-charts |
| Bounded Context Canvas | Purpose, classification, roles, inbound and outbound messages, decisions, assumptions, metrics, open questions | bounded-context-canvas v5 |
| Context Map | Every upstream and downstream neighbour with its pattern and channel | context-mapping |
| Aggregate Design Canvas | The NodeScorecard aggregate | aggregate-design-canvas v1.1 |
| Domain Events | The 2 published and 13 consumed CloudEvents types | domain-message-flow-modelling (message catalogue) |
| Domain Message Flow | Scenarios as commands, events and queries across contexts | domain-message-flow-modelling |
| EventStorming | Process-level boards with policies, read models and hotspots | eventstorming-glossary-cheat-sheet |
| Use Cases | RecordObservation and Recompute, their errors and idempotency | (application layer; complements the aggregate canvas) |
| Class Diagram | The proposed domain model and its hexagonal ports and adapters | (UML; complements the aggregate canvas) |
| Entity Relationship | The proposed Postgres schema | (persistence view; complements the aggregate canvas) |
| Sequence Diagrams | Adapter → 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-performanceondevelop(22497b7, 2026-10-26): binariescmd/api(REST) andcmd/mcp(read-only MCP), and the console remote inweb/. - Deployment: wired in warehouse-infra develop: a
terraform/apps.yamlentry (database: true,frontend_remote: node_performance_mfe) andhelm-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 defaultotel-collector.observability.svc.cluster.local:4317;OTEL_SERVICE_NAME). The Tier-2 business counter isnodeperformance.scorecards.recomputed(unit{scorecard}, ininternal/adapters/outbound/telemetry/scorecard_metrics.go), with attributeoutcome=recomputedorfailedandreasonon the outcomes that are not a success. The dashboard queries it asnodeperformance_scorecards_recomputed_totalin warehouse-infra'sterraform/dashboards/contexts/node-performance.json, byoutcome.
Elsewhere
- Read-only MCP server (service ADR 0007):
cmd/mcp, a second binary serving Streamable HTTP on:8090with 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/mcpmount. - Console remote (service ADR 0008):
web/, a Vite + React Module Federation remote — federation containernode_performance_mfe, gateway mount/mfes/node-performance/, dev/preview port4016— 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.