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.requestedrouting key — OTP email generation- Notification delivery queues
Configuration
| Name | Type | Default | Description |
|---|---|---|---|
| RABBITMQ_URIS | string | - | RabbitMQ connection URIs |
| SMTP_HOST | string | - | SMTP server for email |
| SMTP_PORT | number | 587 | SMTP port |
| SMTP_USER | string | - | SMTP username |
| SMTP_PASS | string | - | SMTP password |
Dependencies
- Identity Service — User data for notification delivery
- Tenant Service — Tenant configuration for branding