Notification WebSocket Service

NestJS:8010Support

A dedicated WebSocket service for real-time notification delivery. Built with NestJS and Socket.IO, it provides bidirectional communication with connected clients.

Key Features

  • Real-Time Delivery — Instant notification push to connected clients
  • Socket.IO — Bidirectional WebSocket communication
  • JWT Authentication — Token validation on WebSocket connection
  • Room-Based Routing — User-specific rooms for targeted delivery
  • RabbitMQ Consumer — Receives notifications from message queue
  • Prometheus Metrics — Connection and delivery metrics

Architecture

WebSocket Notification Flow

Loading diagram...

Configuration

NameTypeDefaultDescription
PORTnumber8010WebSocket service port
RABBITMQ_URISstring-RabbitMQ connection URIs
JWT_SECRETstring-JWT secret for socket auth
CORS_ORIGINstring*Allowed WebSocket origins

RabbitMQ Integration

Consumes from:

  • ws_exchange (FANOUT) — Broadcast notifications from all services