Execution Timeout AWS AppSync API

0

We have an AppSync API in which one of queries is timing out after 30s. The data source is a lambda which is taking approximately 70s to complete the execution. The execution of lambda is perfectly fine but we are not able to optimize it under 30seconds. Is there a way to configure this timeout to a minute in AppSync from the backend or the amplify(angular) client from front-end ?

已提問 2 年前檢視次數 7780 次
1 個回答
1

Hi,

Appsync has a 30 second hard limit for request execution time for mutations, queries, and subscriptions. Please refer to the Appsync documentation for this limit. Unfortunately, this means that there is no configuration or setting which will allow us to exceed this limit.

If you have a query that is taking more than 30 seconds, then the workaround is to implement this in an asynchronous manner. Please refer to this blog for a strategy in Implementing a long-running query on AWS AppSync

AWS
支援工程師
Ryan_A
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南