Best Software for 2025 is now live!

when you do a x-ray to the requests, why is that some times the lambda responds fast or it can take up to 2 seconds ?

in x-ray you can see it does nothing for like 1.5 seconds, this requesting 1 single object from dynamoDB all the time. there is no faster datasource than dynamoDB when you query by id, and this with appsync should be very fast but our tests shows that there is a overhead expected from appsync aggregation but also there is a random amount of inactivity of the lambda that we can't improve. we tried everything, including all possible caches, but it seams it's just lambda not being warm I guess, would like to get more light into this.
1 commentaire
On dirait que vous n'êtes pas connecté.
Les utilisateurs doivent être connectés pour répondre aux questions
Se connecter
Forest K.
FK
0
Oui, parfois le lambda a besoin de temps pour se réchauffer s'il n'a pas été actif pendant un certain temps. Cela peut être résolu par ce qu'on appelle la 'concurrence provisionnée' que vous pouvez activer en lisant à ce sujet ici : https://aws.amazon.com/blogs/aws/new-provisioned-concurrency-for-lambda-functions/
On dirait que vous n'êtes pas connecté.
Les utilisateurs doivent être connectés pour écrire des commentaires
Se connecter
Répondre