Context
Dashboard/analytics compute on request (REST), and the platform already has Socket.IO + Redis presence infrastructure (notifications.gateway.ts).
Problem
Admins and agents refresh manually; there's no push channel for 'new transaction / fraud alert / queue depth'. The realtime infra exists but is used only for per-user notifications.
Proposed approach
Add an analytics Socket.IO namespace pushing low-frequency aggregate snapshots (queue depth via admin queue service, fraud alert counts, property/transaction deltas) with a heartbeat, using the existing Redis adapter for multi-replica.
Acceptance criteria
- Realtime feed updates ≤10s after events; no pressure on DB (cached).
Context
Dashboard/analytics compute on request (REST), and the platform already has Socket.IO + Redis presence infrastructure (
notifications.gateway.ts).Problem
Admins and agents refresh manually; there's no push channel for 'new transaction / fraud alert / queue depth'. The realtime infra exists but is used only for per-user notifications.
Proposed approach
Add an
analyticsSocket.IO namespace pushing low-frequency aggregate snapshots (queue depth via admin queue service, fraud alert counts, property/transaction deltas) with a heartbeat, using the existing Redis adapter for multi-replica.Acceptance criteria