Last post Jan 15, 2016 08:18 AM by adian_J
Jan 14, 2016 02:43 PM|TheStarSailor|LINK
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.
Jan 15, 2016 08:18 AM|adian_J|LINK
You can try to configure always on in azure website to prevent recycle, refer to
https://blogs.perficient.com/microsoft/2015/04/azure-did-you-know-always-on-web-apps/ for more details, hope this helps.