1
votes

I have a web application that was being developed using Web Roles in Azure. It is a relatively complex application in which clients communicate with each other via the web server. Client to server communication is via SignalR and within server instances Web Api is used.

It was critical that it was tested against multiple instances of web roles since the all of plumbing needed to potentially communicate across the various instances of web roles.

This was easy to do in web roles since in Visual Studio's project properties you would simply up the instance count and the Azure Compute Emulator would open a bunch of instances for you.

After attending a recent Microsoft technical briefing, it was suggested that web roles were being superseded by Web Apps in Azure App Service. Indeed on the surface these appeared to be a better fit to my problem and I have been investigating this as an architecture.

The problem I have found is how to simulate multiple instances? Web Apps in development spin up in a single IIS express instance and thus have the same IP address on my development computer. Web Roles spin up in difference instances and all have different IP addresses which makes testing easy. From what I understand on production, web apps, if configured to have multiple instances, will get different IP addresses (and/or ports) since they may be running on different servers

So how do I test multiple instances of Web Apps in the Azure App Service that need to cross communicate in development?

...or am I just missing something big here?

Thanks in advance.

Dave A

3

3 Answers

2
votes

You can use the ARRAffinity value to specify which instance you want to hit, allowing your request to hit any instance you want.

You can find more details here: http://blog.amitapple.com/post/2014/03/access-specific-instance/#.VhLIGXmFMis

0
votes

Could you run full IIS (w3wp) locally for testing? If so, you could create multiple sites or applications using different application pools, and hence processes.

0
votes

I found this. http://blog.tylerdoerksen.com/2013/11/01/azure-websites-vs-cloud-services/

In short, given that I need to have some internal communication then Web Apps in Azure App Service should not be used.