Hello everyone,
When looking for a system to update the players currency/other SQL data while he is on a server from the site this is the approach I found promising (SQL data is loaded on join so it's required to let that server update the data so there aren't any issues).
Site can send a player update (For example a currency update) to the bungee proxy through a socket. The proxy will look through all servers to find the server which the player is currently on and send a message to that server through another socket. If the player is not on the proxy, it will call back to the site with this info, and the site will update the SQL manually.
Are there any leaks in this approach + is there are a better way of doing this? Looking forward to hear from your expertise.
When looking for a system to update the players currency/other SQL data while he is on a server from the site this is the approach I found promising (SQL data is loaded on join so it's required to let that server update the data so there aren't any issues).
Site can send a player update (For example a currency update) to the bungee proxy through a socket. The proxy will look through all servers to find the server which the player is currently on and send a message to that server through another socket. If the player is not on the proxy, it will call back to the site with this info, and the site will update the SQL manually.
Are there any leaks in this approach + is there are a better way of doing this? Looking forward to hear from your expertise.