Search code examples
google-app-enginegoogle-cloud-endpoints

Set or configure timeout of endpoints in cloud endpoints


Is there a way to set or configure the timeout of endpoints in Cloud Endpoints? I believe the default is 60 but is there a way to change this?

Note: this is a Java project.


Solution

  • As I mentioned in the comment, you can add the deadline property to configure timeouts in the yaml file just like this example then you can add the x-google-backend: key after operationId in line 28

    This is another sample yaml file that uses the x-google-backend to set deadline. Note that the link is for API Gateway service.