Jul 16 2020 09:13 AM
Jul 16 2020 09:13 AM
We have couple of App Service which takes more than 230 Sec. We can not use Durable function or Webjobs. how can we increase the request time, as we have a task running which takes about 10 mins.
Aug 04 2020 12:59 PM
@Biplab Sah If you can, I would recommend moving this to an Azure Function. The timeout value can be 10 minutes if you use a consumption based plan, or if you use premium it's unlimited. If the trigger is HTTP though then the timeout is 230 seconds regardless, this is due to the default idle timeout for an Azure Load Balancer. If this situation matches your use case then you can use durable functions, more on this here... https://docs.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-overview#async-http
Dec 03 2020 01:39 AM
The 4 minute idle timeout on the TCP level and this is implemented on the Azure hardware load balancer. This timeout is not configurable and this cannot be changed. One thing I want to mention is that this is idle timeout at the TCP level which means that if the connection is idle only and no data transfer happening, only then this timeout is hit. To provide more info, this will hit if the web application got the request and kept processing the request for > 4minutes without sending any data back.
A common practice to keep the connection active for a longer period is to use TCP Keep-alive. Packets are sent when no activity is detected on the connection. By keeping on-going network activity, the idle timeout value is never hit and the connection is maintained for a long period
Ideally, in a web application, it is not good to keep the underlying HTTP request open and 4 minutes is a decent amount of time. If you have a requirement about background processing within your web application, then the recommended solution is to use Azure WebJobs/Function App and have it nteract with the Azure Webjob to notify once the background processing is done (there are many ways that Azure provides like queues triggers etc. and you can choose the method that suits you the best). Azure Webjobs/Functions are designed for background processing and you can do as much background processing as you want within them.