Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can websites published to Azure have worker roles?

Can I add a Worker Role to a standard MVC4 Website which I am deploying to Azure Websites? I haven't seen any documentation on how to add a worker role to these deployments.

I hope I don't have to rebuild my entire project as a cloud project, convert MVC4 Website to a Web Role and then Add a new worker role... Is this the case? If so, has anyone done this with any success? I have a very large website that I would hate to repackage into a new project.

like image 632
Ray Suelzer Avatar asked Jan 04 '13 23:01

Ray Suelzer


1 Answers

No, but that's not a problem. You can have the following setup:

  • MyApp.Web (ASP.NET MVC 4 Web Application) -> Deploy to Windows Azure Web Sites
  • MyApp.CloudService -> Deploy to myapp.cloudapp.net
    • MyApp.Worker (Worker Role)

You can keep using Windows Azure Web Sites for your ASP.NET MVC application and create a new Cloud Service with a Worker Role for your background jobs.

like image 57
Sandrino Di Mattia Avatar answered Sep 20 '22 00:09

Sandrino Di Mattia