Skip to main content

Architecture (State 009 PostgreSQL Database Replacement)

State 009 replaces H2 database runtime with PostgreSQL while preserving state 003 containerized ingress topology and baseline flows.

  • Inherits architectural baseline from: 003-containerized-compose-runtime
  • Generated from: system/architecture.model.json
  • Canonical flows: ../001-baseline-uncontainerized-parity/system/end-to-end-flows.md

Entry Points​

  • ingress: http://localhost:8080
  • postgres: postgres://localhost:18083/traderx

Architecture Diagram​

Node Catalog​

NodeKindLabelNotes
traderactorTrader BrowserUses Angular UI via ingress.
ingressgatewayNGINX IngressSingle browser entrypoint for UI + API + websocket.
webfrontendWeb Front End AngularTraderX UI.
referenceDataserviceReference DataTicker lookup/list.
tradeFeedmessagingTrade FeedSocket.IO pub/sub layer (unchanged from state 003).
peopleservicePeople ServiceIdentity lookup and validation.
accountserviceAccount ServiceAccount and account-user operations using PostgreSQL.
positionservicePosition ServiceTrades/positions query operations using PostgreSQL.
tradeProcessorserviceTrade ProcessorTrade processing and persistence using PostgreSQL.
tradeServiceserviceTrade ServiceTrade submission and validation.
databasedatabasePostgreSQL DatabasePersistent account/trade/position state.

State Notes​

  • State 009 is an architecture-track branch from state 003.
  • Only database engine/runtime is replaced; functional API and messaging contracts remain stable.
  • H2 web console is removed from runtime expectations in this state.