How to structure an Email and SMS sending web app that runs in the background

I need to develop a web application in asp.net and C# that sends emails and SMS. I already have a console version of this app that i created a few years back but it relies on a windows scheduled task, and is outdated.

What is the proper or best way to do this using asp.net, considering that i'll have other applications that will feed a database with the information to send. How can i setup a background service that will monitor this database and send the messages even if there are no pages open?

Thanks.


We use Topshelf to run as a windows service and Quarts to schedule/manage the recurring job/function calls. Hangfire was another solution that looked interesting.

Hangfire An easy way to perform background processing in .NET and .NET Core applications. No Windows Service or separate process required.

https://www.hangfire.io/

链接地址: http://www.djcxy.com/p/38904.html

上一篇: 什么是cron的Windows版本?

下一篇: 如何构建在后台运行的电子邮件和短信发送网络应用程序