Search code examples
amazon-web-servicesaws-appsync

AWS AppSync resolver internal timeout configuration


Given the scenario that I am using a simple vtl resolver for either http or dynamodb, is there a way to e.g. execute some cleanup in case of the data source timing out (e.g. the dynamodb service not responding in let's say 2s). I can't find any reference of appsync and timeout anywhere on the internet unfortunately, and I would like to be able to: 1. specify a lower threshold timeout for resolvers that is lower than the default appsync timeout of 30 seconds 2. be able to have a fallback mechanism in the case of the aforementioned timeout

I think that should be easy to do with a lambda resolver, but at the moment I am trying to avoid that because of cold starts.

Thank you


Solution

  • I work on the AWS AppSync team. AWS AppSync does not currently support custom timeout values for resolvers or a fallback mechanism when timeouts occur. As you mentioned, a lambda resolver is the best option right now if you require this functionality.

    I will pass this along as a feature request. It would be helpful to know what sort of things you are wanting to do as part of the cleanup process for HTTP and DynamoDB resolvers.