Technology

A pragmatic, production-hardened stack

Chosen for reliability and low operational overhead.

LayerTechnology
HubPython · FastAPI · Uvicorn (async), single DB access layer
DatabasePostgreSQL 16 primary · SQLite fallback · storage-agnostic backup
AgentWindows Digital-Twin collector (MetaTrader5 bridge, psutil), auto-update
RealtimeServer-Sent Events broker · non-blocking · RBAC-filtered
Reverse proxynginx · HTTP/2 · gzip · security headers · Let's Encrypt TLS
Process / HAsystemd (Restart=always, StartLimit) + external health watchdog
AuthShared token + per-user RBAC (hashed tokens) · cookie sessions

Principle: Agent collects facts · Hub decides · Experience presents.