CONTAINER · IN NOTIFICATION SERVICE
Notifier
Sends notifications and manages preferences
Notifier
The Node.js service that sends every message to users, and the gRPC service behind
/api/notifications/*, where users manage their preferences.
Triggers
| Source | Message |
|---|---|
user.created event |
Welcome email |
order.created event |
Order confirmation |
order.shipped event |
Shipping notice |
order.delivered event |
Delivery confirmation |
SendNotification call from the Order API |
Urgent messages that cannot wait for an event |
Sending a message
- Load the user's channel preferences and the message template from the Notification DB.
- Render the template for each channel the user enabled.
- Hand the message to the Email provider, SMS provider or Push provider. Sends are asynchronous and retried with backoff.
Event consumption is idempotent: each event ID is recorded, so a redelivered event does not send the same message twice.
Deployment
2 replicas on the services node in prod.
Edit ./docs/containers/notifier.md to change this text.