I have hosted my client(web application) and service (web api) application on azure portal since 5 to 6 months.
The issue I am facing since the same day hosted my app is when I call my api for the first time to load the dropdownlist from my client side web application it is giving me sometime timeout error but sometime it takes more than expected time to get the result from api so client side have to wait for response to come.
After first successful attempt than it runs very fast as expected but for the first time it some time works by getting result late or sometime it throws an timeout error.
I have used scheduler to call the api time to time but this is not helpful as well.
Any other idea which anyone can share it would me nice and thanks in advance.
You might try to turn on the Always On feature under Application Settings for the web app:

This ensures that when the site becomes idle, the process doesn't get unloaded (go to sleep):

It's probably this "sleeping" that's causing the initial request to take longer since it's having to "warm it up" again.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With