/* voltgrid */ → architecture
VoltGrid Architecture
The system behind the platform: charging stations report via OCPP/MQTT to an IoT gateway, the realtime hub pushes live status into the apps, sessions flow asynchronously through queues into billing. Hover the nodes to see the data flows.
Two separate paths keep the system calm: the synchronous path (app → API → PostgreSQL) answers requests immediately, the asynchronous path (queue → billing worker) processes session completions and invoices without blocking the API. Telemetry flows separately into TimescaleDB, 2,418 stations send kW curves that never weigh down the session database. Payment data stays with the external PSP.
A session's journey through the system: the app starts it via REST, the gateway wakes the station over OCPP, the kW curve streams back into the app via WebSocket, and after unplugging, billing runs asynchronously. This exact flow powers the POST /api/v1/sessions in the sandbox API.