question

Poojan avatar image
Poojan asked

Need some clarification about creating teams not groups

Hi,

First of all thanks for creating such a wonderful product. It so easy to use.

We have a product in line which needs the users to register themselves and select a team. There will be 6 teams.

Now when a user scores his score is added to his team, and we want to show a leaderboard of teams, Where a team will come on top if its players are doing well.

My question is, how can we achieve this with Playfab?

Any suggestion is welcome.

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

·
Andy avatar image
Andy answered

We don't have a feature that supports exactly what you're after. The problem with building it would be that you've got potentially millions of players all attempting to increment a single number. It's a concurrency and scalability nightmare. The more common way of approaching something like this is to recalculate team scores at intervals.

If team aggregate scores are stored in title data, and the teams are essentially segments, you can kick off a nightly job that queries player scores (probably from Snowflake) and determines the aggregate by team. It will require some infrastructure of your own, though, to handle executing the nightly job.

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.