1
votes

I have an mvc4 web application working in azure. I have now created a worker role which works as an email (reminders) sender.

How should I deploy this worker role into azure? Creating a cloud service through management portal doesn't seem right.. I don't see how will this worker role be connected to my web site?

I use a Git for managing deployments. Can I just commit and push my worker role? This doesn't seem enough..

Once deployed, how will I be able to stop this service?

I would really much appreciate if someone could point me in the right direction.

1

1 Answers

4
votes

An Azure Cloud Service is fine, and you could use a technology like Azure Storage Queues as a communication mechanism between the MVC 4 web app and the worker role.

Alternatively, you could host an ASP.NET Web API endpoint in your worker role and expose that. See this blog post.

Starting and stopping the service can be done via the Azure portal.