Edge Agent
The Vorian Edge Agent runs on-premise inside the lab network. It captures analyzer traffic over MLLP and ASTM, buffers every message to local SQLite before acknowledging the instrument, and forwards results through an outbound-only mTLS tunnel — no inbound firewall ports required.
How It Works
- The agent binds a TCP listener on port 2575 (configurable via
MLLP_ADDR) and accepts MLLP-framed HL7 v2.x messages from one or more analyzers - Each instrument connection gets its own goroutine — hundreds of concurrent instruments are supported from a single agent process
- Incoming messages are durably written to a local SQLite buffer before the agent sends an HL7 ACK back to the instrument — the instrument never waits for cloud delivery
- A drain loop runs every 5 seconds, forwarding pending messages to the cloud gateway over an outbound-only gRPC connection secured with mutual TLS 1.3
- Messages that can't be forwarded (network outage, gateway unavailable) remain in the SQLite buffer and retry on the next drain cycle — no data loss during connectivity gaps
- The agent sends a heartbeat to the gateway every 30 seconds, reporting its version and current queue depth
- Remote configuration is applied on the next heartbeat — heartbeat interval, MLLP listen address, and other settings can be changed from the dashboard without restarting the agent
- Real-time config push via server-streaming gRPC allows the gateway to push config changes to the agent immediately, without waiting for the next heartbeat cycle
What's Included
- MLLP/TCP listener: Standard Minimal Lower Layer Protocol framing — 0x0B header byte, 0x1C 0x0D trailer. Compatible with every HL7 v2.x instrument on the market
- Store-and-forward buffer: SQLite-based durable queue with at-rest encryption. Messages are written to disk before ACK — the instrument sees a fast local response regardless of cloud connectivity
- Outbound-only mTLS tunnel: gRPC over TLS 1.3 with mutual certificate authentication. No inbound ports, no VPN, no hospital firewall changes
- Heartbeat monitoring: Every 30 seconds the agent reports version and queue depth. The dashboard Topology page shows online/degraded/offline status with per-agent sparkline charts
- Remote configuration: Change heartbeat interval or MLLP listen address from the dashboard. Config pushes take effect on the next heartbeat without restarting
- Multi-instrument support: One agent handles HL7 v2.x and ASTM E1381 instruments simultaneously — both protocols share the same buffer, tunnel, and heartbeat
- Priority-aware queuing: Messages can be tagged at one of three priority levels (routine, STAT, critical). The drain loop processes higher-priority messages first
- Windows service deployment: On Windows the agent installs as a native service (
VorianHealthConnectEdgeAgent) via an unattended MSI. The installer runs a blocking local preflight (configuration, buffer directory, listener ports, proxy, certificate files) and a reporting-only network preflight (gateway mTLS, instrument reachability, DNS, clock) that a field engineer can re-run later withagent-preflight.exe --network-only. Install, service start, result-listener bind, uninstall, clean removal, and the in-place major-upgrade path are all verified end-to-end, including rollback to the prior version on upgrade failure and repair of damaged binaries viamsiexec /f.
Where It Fits
The edge agent is the bridge between lab instruments and the Vorian cloud platform. It runs on a small Linux, macOS, or Windows machine inside the lab network — a repurposed workstation, a VM, or a dedicated mini-PC. It requires no inbound firewall rules, no VPN, and no changes to existing LIS or EHR configurations. The agent connects outbound to the Vorian gateway over a single TLS port, carrying all instrument traffic through one encrypted tunnel.
Each agent is associated with a single tenant. Multi-site labs deploy one agent per physical location, each reporting to the same cloud tenant with its own heartbeat and queue monitoring.
Technical Details (for evaluators)
The agent is a single Go binary — no Python, Java, or runtime dependencies. It embeds SQLite via modernc/sqlite (pure Go, no CGO required), so installation is a single binary copy. Message payloads are encrypted at rest in SQLite using envelope encryption with key versioning. Encryption failure aborts the enqueue — plaintext is never stored.
The mTLS tunnel uses TLS 1.3 with CA-signed leaf certificates generated by the gencerts utility. Certificate health is reported continuously: the agent classifies client and CA certificate lifetime (valid, warning at 90 days to expiry, expired, or unreadable/malformed) and reports it through the heartbeat, so the Topology page shows each agent's certificate status and days remaining. Certificate rotation is a staged operation — new material is validated against the real gateway with agent-preflight --network-only before the service is stopped, then the service restarts to load it, verifies again, and automatically restores the prior identity if verification fails. The client certificate and key rotate together while CA trust rotates separately; the operation never reads or requires the PHI encryption key, and prior material is retained for a bounded rollback window. An expired certificate fails preflight and keeps the production tunnel fail-closed while local encrypted buffering continues. The agent supports graceful shutdown in both run modes: in interactive mode it responds to SIGINT/SIGTERM and drains active connections before exit; as a Windows service it reports Service Control Manager lifecycle states and handles stop, shutdown, and pre-shutdown requests by draining in-flight work for up to 20 seconds while advancing SCM checkpoints every 2 seconds, keeping upgrades and uninstall bounded.
On Windows the service is configured to recover from unexpected exits with two 15-second restart attempts, then no further automatic action until the failure count resets after a day — bounding restart loops while surviving transient loss. Recovery also triggers on reported non-zero exits (not only process crashes) via the service failure-actions flag.
Routine software upgrades use Windows Installer major-upgrade semantics with stable components and NeverOverwrite, so a package update replaces the agent binaries and the authored recovery policy while carrying forward the installed site configuration and enrollment material — the tenant ID, PHI encryption key, gateway address and ports, and the CA/client certificates — and preserving buffered SQLite data. The upgrade preflight is blocking: if it fails (for example, a PHI-key digest mismatch), the transaction rolls back to the previously installed, still-running version.
Default MLLP listen address is :2575. The connection idle timeout is 30 minutes — instruments that go silent for longer than this are disconnected and must reconnect. The drain loop defaults to a 5-second interval and forwards messages in batches for efficiency.