Runtime Topology: 008-order-management-matcher
Parent state: 007-pricing-awareness-market-data
Describe runtime topology and network/data flow changes introduced by this state.
Entrypointsβ
- App ingress:
http://localhost:8080 - Grafana:
http://localhost:3000 - Prometheus:
http://localhost:9090 - NATS monitor:
http://localhost:8222/varz - Order matcher health:
http://localhost:<order-matcher-port>/health - Order matcher metrics:
http://localhost:<order-matcher-port>/metrics
Componentsβ
- Inherits pricing runtime from
007and observability baseline from006. - Adds order components:
order-matcher(Java/Spring Boot matching + persistence + metrics)- order-management API handlers integrated with backend flow
- trader UI order ticket + account open-orders blotter
- Admin UI view for cross-account order operations
- Extends observability concerns:
- Prometheus target coverage for order matcher endpoints
- Grafana dashboards for order queue depth, events, and matcher latency
- Loki log streams for order matcher and admin operations
Networkingβ
- Admin UI requests order APIs through existing ingress.
- Order matcher writes order lifecycle to shared DB and submits fills through trade-service API.
- Trade processor and position service consume matcher-generated trades via existing integration path.
- Prometheus scrapes order matcher metrics and probes order endpoints via blackbox exporter.
- Grafana queries Prometheus/Loki/Tempo for order-management views.
Startup / Health Orderβ
- Start inherited state
007runtime (app + LGTM). - Start
order-matcherand validate/healthand/metrics. - Ensure ingress routes order-management APIs and admin UI path.
- Verify Prometheus discovers order targets and required metric families.
- Verify Grafana has order-specific dashboards provisioned.