![](https://cdn.discordapp.com/embed/avatars/1.png)
Hi Appwrite Team,
I'm experiencing inconsistent execution times with my functions, and I'd appreciate your insights.
I've added detailed logs to my function to measure the exact execution time. My last try shows: Total Function Execution Time: 484ms However, the Appwrite dashboard reports the function execution time as 2 seconds. On the frontend, the execute() call takes as long as 9.30 seconds.
The delay seems to be random. Sometimes the execute() call takes only a few milliseconds. Other times, it can take up to 10+ seconds for the same operation.
Any insights or suggestions would be greatly appreciated!
Thanks in advance!
![](https://cdn.discordapp.com/embed/avatars/0.png)
What's the code?
![](https://cdn.discordapp.com/embed/avatars/1.png)
Hi there, Thank you for your quick response.
The code involves encrypt and decrypt functions that use AWS KMS for managing Data Encryption Keys (DEKs). Initially, we suspected the delays were due to AWS KMS latency, so we added detailed time logs around all KMS-related operations to track their performance.
Findings: • The AWS KMS decryption and related operations are completing quickly. • The total function execution time, based on the logs, is consistently around 500ms.
Despite this, the Appwrite dashboard reports execution times of 2 seconds, and the frontend execute() call sometimes takes as long as 9.30 seconds.
This discrepancy suggests that the delay might not be directly related to the function’s internal processing or AWS KMS, but potentially something in the Appwrite execution pipeline or network latency.
BTW, I am using NodeJS. I tried to change CPU and memory but no luck.
Recommended threads
- Restriction on Auth and others services
any one could help me on this as i have only 2 Auth user created and the limit is 75k for free plan still i'm restricted also it showing free plan limit has bee...
- How do I authenticate using email and pa...
I have managed to integrate oauth2 login for google and it works fine. however, im running into trouble by creating a new username and password user. I followed...
- schema best practice? (single source of ...
im using appwrite, and i have two project : dev and prod. i need the database structure to match, and also modify it sometimes (add/remove attributes from speci...
![](/images/bgs/pre-footer.png)