Best way to get data from game server

Hello,
I am currently working on a website for a Computer Aided Dispatch (CAD) system connected to my game. I have already implemented a system where each player gets a unique code to log in to the CAD. Now, I want to create a player lookup feature to check if a player is wanted, and if so, how many stars they have, etc.

I have considered two different methods for this:

  1. Website → Messaging Service to Game Servers → Servers Check for the Player → Server with Data Sends Response to Web Server using HTTP Service
  • The web server sends a request through a messaging service to all game servers.
  • Each server checks if the player is currently online.
  • If the player is found, the respective server sends the data back to the web server.
  • My concern with this method is that all servers receive the request, but only one server will have the relevant data.
  1. Datastore Method (Currently Implemented)
  • When a player joins a server, their data is saved to a datastore.
  • Using the new Open Cloud V2 API, the web server can access the datastore and fetch player data.
  • Player data is updated whenever something changes and is deleted when the player leaves.

Right now, I have implemented the second method. However, I am unsure whether I want players to be able to look up information about players in other servers as well.

Does this approach make sense, or is there a better way to handle this?

1 Like

You should use memory stores I reckon

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.