I needed some feedback on how to use azure webjobs for this requirement.
I have a requirement where we need to send notification emails at scheduled time. The frequency of the notification are stored in database tables. example of table entries:
The webjob should read the configuration from DB table and send notification emails at the configured time (configured time is the time mentioned in DB entries). There will be multiple entries in DB table and there can be new entries added or modified. The example above just has 2 entries, there can be more.
Questions:
- How can I make the webjob trigger emails at that particular time of day after reading the configuration from DB?
- Is there a better way to implement this notification scheduling using any other azure resources?
- How to make sure the webjob successfully sent the email?
- Is there a retry mechanism if the webjob fails to send email?
Any help would be appreciated.
Thanks in advance.