Component Spec: nats-broker
Responsibilitiesβ
- Provide broker-based pub/sub for backend services.
- Provide websocket-compatible endpoint for browser streaming clients.
- Support wildcard subscriptions for account-scoped and pricing subjects.
Covered Flowsβ
F2 trade submission to processing event chain (with execution price enrichment).
F4 real-time account updates + pricing stream to UI.
STARTUP runtime readiness dependency for event-producing services.
Requirement Coverageβ
FR-1002, FR-1005, FR-1006, FR-1009
NFR-1002, NFR-1003, NFR-1005
Interfacesβ
- NATS client:
4222
- Monitoring:
8222 (optional debug)
- Browser websocket (proxied):
/nats-ws
Verificationβ
scripts/test-state-008-pricing-awareness-market-data.sh (to be implemented)