How to implement background processing for ASP.Net MVC website in a shared hosting environment?

前端 未结 4 1103
旧时难觅i
旧时难觅i 2021-02-01 08:45

I am developing my first web application using ASP.Net MVC, and I am in a situation where I would like a background service to process status notifications outside of the applic

4条回答
  •  既然无缘
    2021-02-01 09:01

    To answer whether GoDaddy will support a seperate service you need to ask them.

    However there are a number of creative ways that you can "get around" this issue on shared hosting.

    1. Have a secure page that's purpose is to execute your background work. You could have scheduled task on a machine under your control that calls to this web page at set intervals.
    2. Use a variation of the Background Worker Thread answer from @safi. Your background worker thread could check to see if another is already processing and stop, so that only one instance is running at a time.

提交回复
热议问题