Node.js + route handlers
Next.js web surface
Admin UI and preserved API boundary
Allpro TMS Gateway
This foundation keeps the current FCMB and terminal-facing ecosystem stable while carving out a clean runtime boundary for callback ingestion, settlement orchestration, and MQTT delivery.
Service map
Node.js + route handlers
Admin UI and preserved API boundary
Go 1.25
Inbox, outbox, retries, and scheduling baseline
Postgres 16
Gateway system database
Redis 7
Coordination, locks, and queue support
EMQX 5
Existing MQTT terminal contract
Contract freeze
Why this order
The stack is intentionally narrow right now. We freeze the infrastructure, contracts, health checks, and startup commands before implementing FCMB flows so cutover risk stays visible.
This gives the next tasks a stable base for terminal support APIs, callback normalization, settlement processing, and admin diagnostics.
Next tasks