4
votes

I've looked through the Google Cloud API Gateway docs and searched the public issue tracker but haven't been able to find a mention of it one way or another.

The closest I've come is this google groups thread from 4 months ago, which suggests that it may be 60 seconds, but I haven't been able to confirm this or determine if it's out-of-date yet.

TL;DR

I'm looking for alternatives to AWS API Gateway (which has a fixed 30 second timeout) and so am trying to figure out if GCP API Gateway would work as an alternative on this particular point.

1

1 Answers

5
votes

Yes, GCP API gateway does support custom timeout lengths. In your open api spec, underneath "x-google-backend:", insert "deadline: z" where z is the number of seconds till timeout.

Example:

    x-google-backend:
         address: [this-is-your-address]
         deadline: 60.0

The above will give a deadline of 60 seconds.