Deploy Web Role and Worker Roles in One Instance

I am developing a scalable application, and I am using the role of a web role, a queue, a working role design ... But right now (at the stage of alpha testing) I am a little worried about cost reduction because I suffer from a common problem "due to cash "...

Thus, due to the test nature of the phase, I wondered if there is a way to make the role act like a role on the Internet and the role of a worker. Therefore, I could deploy both of my projects (the project "WebFrontEnd" and the project "QueueProcessor") on one instance ...

Edit1: I know how to deploy different web projects in one instance ... or a web project and a WCF project ... but I can’t manage an employee role project ...

+1
source share
2 answers

There are many topics on the same subject that basically would tell you not to. See this topic, for example: Can we have a working role and a web role in one instance of Azure Cloud Services . However, take a look at this blog post about combining a web page and a worker role: http://www.31a2ba2a-b718-11dc-8314-0800200c9a66.com/2010/12/how-to-combine-worker-and-web- role-in.html .

Another idea might be to keep them separate, but deploy them in an Extra Small instance instead of a larger instance (1 Small Instance = 6 Extra Small Instance in terms of cost). If you are not interested in an SLA, you can only deploy one instance of your role on the Internet and the worker role (in separate virtual machines).

+1
source

You cannot deploy two different endpoint projects on the same instance. However, your instance may contain a code base for both and serve as the only machine that contains both executable files.

Just go to the QueueProcessor project from the WebFrontEnd project and run QUeueProcessor from your WebRole.cs

0
source

All Articles