You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This repository contains a notification microservice built using the ServiceBricks foundation.
12
-
The notification microservice is responsible for send emails and SMS messages from the system.
13
-
It provides a background task to process notify messages, along with retry, should external providers not be available.
14
-
It also subscribes to service bus messages for email and sms broadcasts, so that the security microservice and others have a default mechanism to send notifications from the system.
11
+
This repository contains the notification microservice built using the ServiceBricks foundation.
12
+
The notification microservice is responsible for sending emails and SMS messages from the system.
13
+
It provides a background task to process notify messages, along with retry, should external providers not be available when being sent.
14
+
It subscribes to service bus messages for email and sms broadcasts, so that the security microservice and others have a default mechanism to send notifications from the system.
15
15
16
16
### Supported Providers
17
17
By default, dependency injection is registered with a dummy email and sms provider that does not send any message but simply logs them using an ILogger<> inteface.
18
-
You must explicitly add a line of code to register the providers below.
18
+
You must explicitly add a line of code and configurations to register the providers below.
19
+
You can quickly build your own providers by including the **ServiceBricks.Notification.Model** NuGet package and implementing the IEmailProvider and ISmsProvider interfaces.
@@ -90,7 +100,8 @@ This background task invokes the [NotifyMessageWorkService](https://github.com/h
90
100
### CreateApplicationEmailBroadcast
91
101
This microservice subscribes to the CreateApplicationEmailBroadcast message.
92
102
It is associated to the [CreateApplicationEmailRule](https://github.com/holomodular/ServiceBricks-Notification/blob/main/src/V1/ServiceBricks.Notification/Rule/CreateApplicationEmailRule.cs) Business Rule.
93
-
When receiving the message, it will simply create a record in storage and allow the background process to pick it up to process it.
103
+
When receiving the message from service bus, it will attempt to send the notification first, then store the process disposition before creating the message in storage. This reduces the reliance on the timer for sending messages and sends messages immediately when received.
@@ -106,7 +117,7 @@ When receiving the message, it will simply create a record in storage and allow
106
117
### CreateApplicationSmsBroadcast
107
118
This microservice subscribes to the CreateApplicationSmsBroadcast message.
108
119
It is associated to the [CreateApplicationSmsRule](https://github.com/holomodular/ServiceBricks-Notification/blob/main/src/V1/ServiceBricks.Notification/Rule/CreateApplicationSmsRule.cs) Business Rule.
109
-
When receiving the message, it will simply create a record in storage and allow the background process to pick it up to process it.
120
+
When receiving the message from service bus, it will attempt to send the notification first, then store the process disposition before creating the message in storage. This reduces the reliance on the timer for sending messages and sends messages immediately when received.
0 commit comments