So I have been working on a big tile based base building / adventure game and I need some advice on setting up the server/database component.
I am currently using php and mysql on my small test server. There are a lot of things that the player can do, like build their base, send explorers, attack cities and so on but all these actions follow the same process:
- player does an action in the app, like ”send scouts somewhere”
- that action is sent to a php file on the server,
- the server will try to log in the player, if it cant then thats it but if it can then
- the server will open the database and get the players info,
- the server will check if player can perform the given action, like do they have enough gold, people etc
- if the player has enough of everything the server will update the players database entry and close it,
- the server will send back response of what happened, like success or fail,
- the app will run the command that it got
My question is: is php+mysql good for this? Like if I have 1000 concurrent players and whenever they make a gameplay move, then their database entry is opened, checked and update and/or closed. Can a pho+mysql handle this or should I look for some other service to manage this?