Search…
User Notification
1
sequenceDiagram
2
autonumber
3
Institution->>Advania:adds new message in mailbox
4
Advania->>User-Notification-Service:xroad:sends message notification
5
User-Notification-Service->>AWS SQS:adds processed notification to queue
6
loop
7
User-Notification-Worker->>AWS SQS:requests 10 notifications
8
AWS SQS->>User-Notification-Worker:responds with 0-10 notifications
9
end
10
loop if worker throws an unexpected error, it will try 2 more times with 10 minute interval
11
User-Notification-Worker->>User-Profile-Service:requests notification settings
12
User-Profile-Service->>User-Notification-Worker:returns user settings and tokens
13
end
14
User-Notification-Worker->>Firebase Cloud Messaging: sends notification
15
Firebase Cloud Messaging->>island.is app:sends notification
Copied!

About

This service manages queueing up messages to send push notifications / sms / emails.

running the project:

Dev setup & running:

1
yarn dev-services services-user-notification
2
yarn start services-user-notification
Copied!

Starting a worker

1
yarn nx run services-user-notification:worker
Copied!