Apigee Gateway timeout

Hello,

We have an application flow where in the request comes to Apigee and Apigee does a passthrough to our Apache webserver(Target endpoint) . We have some requests that would take around 8-10 minutes to serve a response to the user . We are getting the below error within one minute

{
   
"fault": {
     
"faultstring": "Gateway Timeout",
     
"detail": {
           
"errorcode": "messaging.adaptors.http.flow.GatewayTimeout"
       
}
   
}
}

 I tried the below configuration. But still not working. 

https://docs.apigee.com/api-platform/troubleshoot/runtime/504-gateway-timeout#slowbackendserver

I see there are two things router timeout & MP timeout.  How do i specify both router & MP timeout so that Apigee doesnot timeout within 10 mins before getting the response from target server.??

 

 

0 1 1,029
1 REPLY 1

We have some requests that would take around 8-10 minutes to serve a response to the user . We are getting the below error within one minute

That's not going to be well supported by Apigee.

How do i specify both router & MP timeout so that Apigee doesnot timeout within 10 mins before getting the response from target server.??

I don't think you can do that. The timeouts for R and MP are ~60 seconds. Apigee is designed to work with relatively fast-responding upstream systems. Upstreams that have some requests that take > 10 minutes ... are not good candidates to run through Apigee.  The limits page for Apigee X and hybrid states that 600 seconds is the maximum timeout. But for Apigee Edge, there is no documented limit. I think it might be 60 seconds.  You'd have to contact the support desk to find out for sure. 

I would suggest reconsidering the design of the system, making it asynchronous.