Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can increase Azure App Service 230 sec request time out

I have hosted an Asp.NET MVC application on Azure App Service. I am getting a timeout exception which elapsed more than 230 seconds. How can increase it on Azure App Service?

like image 671
Arun Cherian Avatar asked Oct 17 '22 10:10

Arun Cherian


1 Answers

As far as I know, 230 seconds is the maximum amount of time that a request can take without sending any data back to the response.

We couldn't increase it in azure web app.

Here are two work around.

One is you could move your application to a cloud service or created a VM where you have control over those settings.

Another way, you could also use async pattern in MVC.

For example:

Firstly, you could send the request to the MVC to tell the server start to work and returns an http 202.

Then you could send request every seconds or minutes from client to check the server work. If it works completely return 200 to tell the client has already completely.

like image 178
Brando Zhang Avatar answered Nov 15 '22 09:11

Brando Zhang