I have game servers that need to update the user data for all connected players at the end of a match. Whats the best way to handle this? I assume looping through all players and calling `UpdateUserReadOnlyData` isnt the recommended route?
I have game servers that need to update the user data for all connected players at the end of a match. Whats the best way to handle this? I assume looping through all players and calling `UpdateUserReadOnlyData` isnt the recommended route?
As there is no API that could batch update the User Data, for the condition that the players were in a match of your game server, the best way would be calling Update User Data API for each player.
If you have any further questions, please feel free to ask.
Alright but would you suggest just using a for loop and calling Update User Data for each player? Or having some sysem to ensure each player is updated before moving on to the next?
I remember seeing something regarding making too many calls of the same function being problematic
You could call the Update User Data asynchronously using for loop. Sometimes there could be errors when making too many simultaneous calls. In this case, you could use the exponential retry strategy to handle the error. For more detail, please refer to: Handling the error.
2 People are following this question.