Unity3D game.
How to Sync Scheduled Tasks with a Leaderboard of reset frequency(Daily).
e.g
After each time the leaderboard is reset, we want to call a cloudscript for everyplayer playing the game.
What should be the Cron expression?
Thankyou.
Answer by Brendan · Dec 09, 2019 at 08:36 PM
First, I would recommend reviewing this post:
https://community.playfab.com/questions/11800/what-is-the-processing-rate-of-a-scheduled-task.html
As you can see by that, at this time a Scheduled Task is going to take an amount of time determined by the number of players. For a large game, that could be considerably longer than an hour. Depending on your specific gameplay design, a better solution might be to run the Cloud Script logic for the player when they sign into the game, to update their relevant values at that point.
Thankyou Brendan. It's good to hear from you:)
We had to think hard and we've designed that module in a way now that it is based on CloudScript logic. Just one last hiccup, what is the limit on frequency of writing and reading PlayerInternalData? right now for writing we have 5 mins interval(total of 15-20 times a day,depends upon how many times the cloudscript was called and a particular statement is satisfed) and for reading PlayerInternalData: it's every 2 mins.
is that alright?
Hi, Could you please tell us what is the frequency of writing and reading playerInternalData?
Is reading and writing every 2 mins reasonalble?
Writing for 5 mins interval and reading for every 2 mins should be OK.