Notification Workers

NestJSSupport

Notification Workers handle asynchronous notification processing by consuming RabbitMQ messages and delivering notifications through various channels.

Key Features

  • Async Processing — Background notification delivery
  • Email Delivery — OTP emails, notification digests
  • Queue Consumer — Processes notification queue messages
  • Retry Logic — Automatic retry for failed deliveries
  • Dead Letter — Failed messages route to DLQ for inspection

RabbitMQ Integration

Consumes from:

  • email.otp.requested routing key — OTP email generation
  • Notification delivery queues

Configuration

NameTypeDefaultDescription
RABBITMQ_URISstring-RabbitMQ connection URIs
SMTP_HOSTstring-SMTP server for email
SMTP_PORTnumber587SMTP port
SMTP_USERstring-SMTP username
SMTP_PASSstring-SMTP password

Dependencies

  • Identity Service — User data for notification delivery
  • Tenant Service — Tenant configuration for branding