tags:

views:

49

answers:

2

We have a Web Role that we are hosting in Windows Azure that uses an old ASMX based Web Reference to contact an external system. The Web Reference proxy code is big enough that instantiating it the first time has a significant cost.

We'd like to be able to have this run when the Web Role starts instead of on the first request.

I know IIS 7.5 has an Application Warm-Up module that would allow us to achieve this, but I'm having trouble figuring out if something similar exists with hosting on Windows Azure.

Thanks, Corey

A: 

Since the only purpose of a VM hosting a Web Role on Windows Azure is to answer web requests, I would suppose such to sort of tuning to be the responsibility of the Cloud OS, not the Cloud App. That being said, it might interesting to check whether the Azure Cloud OS is indeed making such a tuning available by default.

Joannes Vermorel
A: 

It looks like the Application_Start handler in Global.asax gets executed when the Web Role is deployed (for ASP.NET) and not on the first request, so that will work for us.

Corey O'Brien