Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows Azure - background/scheduled tasks?

Previously, there was worker role in Azure, now I can't see one - so what to use for background/scheduled tasks, like maintainance, email sending, etc, should I create virtual machine and create windows services there or is there easier way?

like image 763
Giedrius Avatar asked Jan 14 '23 02:01

Giedrius


1 Answers

The definitive (current) guide to this FAQ is Guarav's Building a Simple Task Scheduler in Windows Azure — which, as it turns out, is not that simple, and it is not really suited to Azure websites (but rather roles).

The simplest solution is to create RESTful (ish) routes (controllers, etc) using something like the MVC Web API and get a cron job scheduler to kick them off. Recently I have been using the Aditi cloud scheduler which kicks of those jobs for you, and is free (5000 calls per month) in the marketplace.

like image 156
Simon Munro Avatar answered Jan 21 '23 10:01

Simon Munro