question

joshua singer avatar image
joshua singer asked

Guild Event/Leaderboard implementation idea.

This might not work at all at scale so I want to pose the question here. There is no way to implement a Guild Leaderboard with the current playfab tools, but is it possible to run an hourly, or at worst daily, automated task on all Users that takes a saved value at the player level and add that statistic to the guild leader's stat, which would represent the guild entry in the leaderboard?

Does an automated task run single threaded over the entire list of users so it wont produce race conditions? And will running something like just fail at scale?

Thanks

Leaderboards and Statistics
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

·
Neils Shi avatar image
Neils Shi answered

We do not recommend that you use Scheduled tasks to implement the guild leaderboard function, even if the scheduled task is executed single-threaded, there is no guarantee that race conditions will be avoided if the number of players is large. In addition, it will result in a large number of API calls and high fees. So, we recommend that you may use an external database to implement this functionality.

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.