If you haven’t done this already, you can extend the App Service wait time by using the Always On feature. This feature keeps your app running continuously by pinging your app at regular intervals.
If the Always On
setting is off, please enable it from Azure Portal **
– Your WebApp > Configuration blade (> General settings).**
To add more background, SSE uses long-polling requests, it may hit the 230s limit. Azure Load Balancer has a default idle timeout setting of four minutes (~230 secs). If your web app requires background processing, it is recommended to use Azure WebJobs or Azure Functions.
- WebJobs is a feature of Azure App Service that enables you to run a program or script in the same instance as a web app. There is no additional cost to use WebJobs.
- Alternatively, if your requirement fits, you may use Azure Functions to process your workloads. Azure Functions provides another way to run programs and scripts.
- Additionally, you only pay for the time your code runs, and you can scale up or down based on demand. Azure Functions also has a lower learning curve compared to AKS.
For a comparison between WebJobs and Functions, see Choose between Flow, Logic Apps, Functions, and WebJobs