question

jperal avatar image
jperal asked

Can a Cloudscript be executed multiple times after one client request?

We have created a football game and we use Playfab for leaderboards. We a use cloudscript function to update player stats, and we call it from our client only once at the end of each match sending how many goals he scored.

This has been working fine in our internal tests. But recently we have soft launched our title and we have discovered that sometimes there are hundreds of events from the same user in the same minute. (it is impossible we make more than one request every 3 or 5 minutes)

p.d: Hacking is not an option, it happens to someone in the office, who is not a hacker

Whats is going on?

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

No, one call to ExecuteCloudScript would result in one execution pass of that script. What specifically are you seeing? You mention "events" - do you mean built-in PlayFab events, like player_statistic_changed? What is the Title ID, the Cloud Script handler being executed, and a PlayFab ID you've seen experience the issue?

10 |1200

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

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.