Technology
A pragmatic, production-hardened stack
Chosen for reliability and low operational overhead.
| Layer | Technology |
|---|---|
| Hub | Python · FastAPI · Uvicorn (async), single DB access layer |
| Database | PostgreSQL 16 primary · SQLite fallback · storage-agnostic backup |
| Agent | Windows Digital-Twin collector (MetaTrader5 bridge, psutil), auto-update |
| Realtime | Server-Sent Events broker · non-blocking · RBAC-filtered |
| Reverse proxy | nginx · HTTP/2 · gzip · security headers · Let's Encrypt TLS |
| Process / HA | systemd (Restart=always, StartLimit) + external health watchdog |
| Auth | Shared token + per-user RBAC (hashed tokens) · cookie sessions |
Principle: Agent collects facts · Hub decides · Experience presents.