locked
Prevent a Web API project deployed on the Cloud from being recycled RRS feed

  • Question

  • User-120911499 posted

    Hi,

    I'm pretty new to ASP.NET and I've got to create a Web API project that will poll a Topic on the Cloud periodically for messages. 

    From the samples in MSDN, I have been able to successfully implement REST communication between a class and the Service bus. I was in the process of integrating this code with the Web API project when a thought struck me. I need to periodically poll the service bus for messages. However, after reading up on some literature on MSDN, I now realise that I do not have sufficient information on this. 

    What I know: 

    IIS periodically recycles App Domains. I cannot have this recycling going on for my Web API project because I'd need uninterrupted polling of the Service Bus. I also cannot use AMQP communication so am limited to REST which forces me to use a System.Timer.Timer object to poll.

    What I do not know:

    1. Is there any way in which I can configure my Web Api app to never be brought down on the Cloud ?
    2. Is there any better way to design this solution?

    Looking for much needed help and guidance on this.

    Thursday, January 14, 2016 2:43 PM

Answers