question

glen avatar image
glen asked

Question about CloudScript functionality

From what I'm seeing with CloudScript it appears as if a new instance of the script is loaded into memory almost every time an ExecuteCloudScript API call is made. Which would mean that updating any global variables in the script for use later is invalid. Am I correct in this assumption?

CloudScript
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

Correct - at scale, you can't rely upon the same JS engine, or even server, to necessarily be the same from one instance of calling a handler to the next. There's a more complete discussion on this subject in this thread: https://community.playfab.com/questions/3388/210571828-JS-static-properties-and-Cloud-Script.html

1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

glen avatar image glen commented ·

Thanks for the info!

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.