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 ?

1 Risposta
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
TECNICO DI SUPPORTO
Ryan_A
con risposta 2 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande