Hello,
I`m using Cloud Code with C# module. The problem is that the latency time of cold start is too long. It takes over 8000ms. If it is not on a cold start, it takes around 200~600ms.
I tested it again with the basic sample module - SayHello function, and this small function also takes over 6000ms! Is this normal?
public class HelloWorld
{
[CloudCodeFunction("Hello")]
public string SayHello()
{
return "Hello World!";
}
}
The difference of about 2000ms between the two comes from fetching Cloud Save or Remote Config for the first time in a cloud module. Calling other UGS api drops to under 100ms during a warm state, and under 400ms when it is called directly from client (without Cloud Code).
.
I was suspicious of the region out of US, but I think it would not be that much.
One more thing I noticed is, I heard that a cloud function becomes a cold start right after deploying, but it drops to 2000~3000ms when it runs after the deployment.
Someone says using REST api instead of C# module will help the cold start issue, but I`m not sure.
Anybody who has experienced like this?