Answer the question
In order to leave comments, you need to log in
Multiplayer server?
Hello.
The time has come when you need to develop a server for an online game (the client will be android and / or ios) and a lot of questions arose on this topic. Since there is no experience in developing such things, the questions can be extremely strange.
- First of all, how should the server work? It should immediately synchronize the server and save all user actions at the time of their execution in the same mysql?
- Technology for the server itself? On the Internet, I saw a lot of reviews about nodejs, both good and bad. Therefore, there is some uncertainty about NodeJs. Also still interested in such a thing as ASP.NET. Is it suitable for such purposes and is it justified to use it?
- Let's say when choosing Node, in the client itself I have to process the server's response. This is understandable, but in what format will this JSON response be (everything is right) or am I not understanding correctly ???
For an add-on (not a game), I used php + mysql "data storage servers". Did I do the right thing?
I would like to hear some advice from you in building, optimizing, choosing the right technologies for such a server that is designed for network play.
Answer the question
In order to leave comments, you need to log in
Suitable and Node.JS and PHP and C ++ and Ruby and ASP.NET and Python and Java, etc., etc., etc.
I would suggest Go. With it, the load on the server will be less.
And there is good documentation and templates on the interaction of the server and Android for Google AppEngine.
Of the minuses - get attached to Google AppEngine. Of the pluses - there is a lot out of the box and is already sharpened for Android, while Android is sharpened for Google AppEngine.
"The time has come when you need to develop a server for an online game"
Judging by your questions, the time has not come yet.
Write an online chat for example.
write an online chess or sea battle server, with the ability for two to play, the rest to watch. It will take a little time, but you will learn how to formulate questions correctly.
Because your questions sound like this: "I want to write an abstract online game server, I have no idea quake / dota / balls online, but how to make everything work instantly on any client." That is, no concept, no requirements, no understanding of what is critical and what is not.
nodejs+socket.io is a very good choice for your own server. Also full of ready-made solutions.
I advise you to get acquainted with this series of articles . A lot of interesting.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question