Back

Cloud function execution times variance

  • 1
  • Functions
  • Cloud
whataboutno13
29 Nov, 2023, 13:47

Hi there, I am experiencing very different execution times for the same function with the same input data in the cloud. The function code is nothing special, just some creation of documents (50). Is there anybody else experiencing the same issue?

TL;DR
Many requests are timing out or taking longer than usual to complete. The function is creating 50 documents and should be a simple task. No pattern or solution has been identified. The issue has been happening for at least two days. Possible causes could be cold start or server load.
Drake
29 Nov, 2023, 14:00

Maybe cold start maybe server load?

whataboutno13
29 Nov, 2023, 14:02

Well I am experiencing this for at least two days now, that the same function with the same input data is taking from approx 1s to 30s (times out)

Drake
29 Nov, 2023, 14:02

How often after executions?

whataboutno13
29 Nov, 2023, 14:06

This is an example of today

whataboutno13
29 Nov, 2023, 14:08

So I can not really see a pattern here

whataboutno13
30 Nov, 2023, 10:46

It is getting worse today. Out of approx 20 requests there are 9 timeouts (30s), 2 completions > 20s and only 9 in under 5s. Just for reference, all this function does is creating 50 documents. So it should be a fairly easy task from my point of view. Are there any best practices how to create many (even though 50 are not that many) documents?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more