, no, I'm just saying that the server role is not to
The role of the server in the browser game is simple — make the customer request, to query the database and return the response to the client.
Just such reasoning, any problem will boil down to 1/2/5/50 queries to the database :) I'm not familiar with the structure of your game, but besides that I have written there are a number of tasks. For example, in my opinion, it makes no sense to store in the database the maximum level of lives of the player, I keep only the current one. And the maximum is calculated by various algorithms on the basis of other characteristics. And such aspect a whole bunch. The calculation on the client at best just duplicates the functionality of a server, in some cases, it's redundant. Above are Fally
described a little structure to your game, I did the same thing. In my case, the client requested the state of an object, for example the enemy in battle, and received a json response with the desired characteristics, based on which the client would display the state of the object.