Feature Improvement: Add a retry to the default notification distributor
We have lots of situations where the default notification distributor doesn't find the notification it's been told to distribute.
This happens because the notification publisher (and the parent unit of works) may not have actually committed to the DB the notification before the distributor runs.
EG: AppService code calls the app notifier to publish a notification. The notification publisher then queues a background job for the distribution. This background job starts running and then the appservice code finishes and the unit of work is committed.
It's too late however the distributor job never finds the notification and just logs a warning and finishes.
We're adjusting our code to reduce the chances of this happening but it would be great if the default implementation had some retry logic in it.
We will likely implement our own distributer in the meantime. Thanks
Source: aspnetboilerplate/aspnetboilerplate