Skip to main content

Architecture (State 009 Kubernetes Runtime)

State 009 preserves state 008 browser/API routing behavior while running all services on a local Kubernetes cluster.

  • Inherits architectural baseline from: 008-order-management-matcher
  • Generated from: system/architecture.model.json
  • Canonical flows: ../001-baseline-uncontainerized-parity/system/end-to-end-flows.md

Entry Points​

  • edge-proxy: http://localhost:8080
  • edge-health: http://localhost:8080/health

Architecture Diagram​

Node Catalog​

NodeKindLabelNotes
developeractorDeveloperRuns local Kind-based Kubernetes runtime.
clusterboundaryKind Kubernetes ClusterLocal cluster namespace and workloads.
edgegatewayNGINX Edge ProxySingle browser entrypoint for UI/API/WebSocket routes.
webfrontendWeb Front End AngularAngular frontend served behind edge proxy.
accountserviceAccount ServiceAccount and account-user APIs.
positionservicePosition ServicePositions and trades query API.
tradeServiceserviceTrade ServiceTrade order submission and validation.
referenceDataserviceReference DataTicker metadata lookup.
peopleservicePeople ServicePerson lookup and matching APIs.
natsmessagingNATS BrokerMessaging backbone for trade, position, pricing, and order lifecycle streams.
tradeProcessorserviceTrade ProcessorConsumes trade events and persists settled state.
databasedatabaseDatabasePostgreSQL persistence service.

State Notes​

  • Functional behavior remains intentionally equivalent to state 008.
  • Primary delta is runtime/operations model (Compose to Kubernetes).
  • Edge proxy remains NGINX-based to keep route semantics stable.