Agent Topology
The Topology dashboard gives lab IT teams real-time visibility into every edge agent connected to Vorian Connect. Monitor heartbeat status, queue depth sparklines, agent health, and connectivity — all updated every 10 seconds through server-sent events (SSE) pushed directly from the gateway.
How It Works
- Each on-premise edge agent sends periodic heartbeats through its outbound mTLS tunnel to the cloud gateway. Heartbeats include the agent's current queue depth, connection status, last-seen timestamp, and the expiry status of its client and CA certificates
- The gateway broadcasts agent status changes through a tenant-scoped SSE hub backed by Redis PubSub. Each dashboard tab subscribes to its tenant's SSE channel and receives real-time updates without polling
- The Topology page renders each agent as a card showing online/offline status, queue depth sparkline over recent history, and a link to deeper agent detail. Cards update automatically when SSE events arrive
- Heartbeat history is stored in the database and can be queried through
/api/agents/:id/history. The sparkline renders the last 20 heartbeat points as a mini time-series, helping operators spot queue buildup before it becomes critical - STAT-priority detection runs on every incoming message: OBR-25 values of "S" or "STAT" flag the message as STAT priority, and "C" or "CRITICAL" flags it as critical. Priority is used by the edge agent's drain order to ensure STAT results are processed and delivered ahead of routine messages
What's Included
- Agent health monitoring: Each agent card shows online/offline status with green and gray indicators. Offline agents display the duration since last heartbeat, helping IT teams identify disconnected sites quickly
- Certificate health visibility: Each agent reports the expiry of its client and CA certificates through the heartbeat, surfaced in the agent detail view as a certificate status (valid, warning within 90 days of expiry, expired, or unreadable) with days remaining. This gives IT teams early warning before an mTLS certificate lapses and takes the agent's tunnel down.
- Queue depth sparklines: A mini time-series chart showing the agent's queue depth over recent heartbeat history. Spikes in queue depth indicate a backlog — either the agent is receiving more messages than it can process, or the outbound tunnel is constrained
- STAT priority routing: Messages flagged as STAT or critical are detected at parse time through OBR-25 inspection. The edge agent uses priority levels (routine=0, STAT=1, critical=2) to determine drain order — STAT results are always delivered before routine batches
- Real-time updates: SSE push from the gateway ensures topology changes appear in the dashboard within seconds of detection. The SSE hub is tenant-scoped: each dashboard instance receives only its tenant's events
- Agent detail drill-down: Each agent card links to a detail view with heartbeat history table, queue depth over time, and connection statistics. History data is paginated and supports time-range filtering
- Multi-site health system view: For health systems with multiple sites, the SSE hub supports health-system-scoped broadcasting. Platform administrators monitoring multiple tenants can receive cross-site topology events through a single SSE subscription
Where It Fits
Topology sits in the Lab Operations section of the dashboard sidebar alongside the Live Feed and Worklist. It is the first screen IT teams check when there is a suspected connectivity issue — before digging into individual message traces or delivery logs. The topology view complements the Observability page: Observability shows aggregate throughput and processing metrics, while Topology shows per-agent health at the edge.
Agent history and topology data are gated by source scopes. Source-scoped users see only the agents for their assigned instruments; platform administrators see all agents across all sites. Heartbeat data is stored with tenant isolation — agents cannot see heartbeats from other tenants.
Technical Details (for evaluators)
The SSE hub uses an in-process fan-out pattern with Redis PubSub for multi-replica deployments. When Redis is unavailable, the hub falls back to single-replica in-process broadcasting. Each SSE subscription creates a buffered channel (capacity 64 events); slow consumers that fill their buffer are silently dropped rather than blocking the publisher. The dashboard's SSE endpoint borrows a database connection from the pool for the initial query, then releases it — idle topology tabs do not hold open connections. Priority detection is a pure function on parsed HL7 messages, adding zero database latency to the message pipeline.