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 ?

preguntada hace 2 años7780 visualizaciones
1 Respuesta
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
INGENIERO DE SOPORTE
Ryan_A
respondido hace 2 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas