Skip to content

Add real-time dashboard metrics feed over WebSockets #1297

Description

@nanaf6203-bit

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).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions