Do on-demand web work from my ASP.NET website?

Right now I have a web work that is Continuos with "Always On". This webjob listens for queue messages and performs actions. Everything works fine, but I have to pay every minute when the web job listens for commands, right?

I saw that you can also start web work on demand, but I did not find example code on how to complete a web task on demand.

Reference Information. I run a web crawler inside a web job that gets the URL that should be crawled from the message queue. I would like to minimize costs.

How can I do an on-demand web task from my ASP.NET website?

thanks

+5
source share
1 answer

Since your site is already running on a standard copy, and the web application works in the same web hosting plan on your site, you pay nothing for it, since WebJob (and its host site) and the site itself work the same virtual machines.

You can enable (or leave) Always On enabled and not incur any additional costs. Disabling Always On will not save you any money, and as you know, WebJob requires the correct execution for continuous operation.

Hope this helps.

+5
source

All Articles