I am thinking of writing a server-based game, and several client programs are connecting to it. The game (very) basically consists of a list of elements that the user can โacceptโ, which will remove it from the list on all connected computers (this needs to be updated very quickly).
I am thinking about using a Java applet for the client, as I would like it to be portable and run from a browser (mainly on Windows), and also be updated quickly, as well as on a C ++ or Java server running on Linux ( currently only a home server, but perhaps to upgrade to VPS).
The previous โincarnationโ of this game was running in the browser and used PHP + mySQL for the backend, but it slowed down the server a bit when several people connected (it was about 8 people, in the end it had to handle a lot more).
Most likely, users will be in the same physical location (with the same public IP address), and the system will receive several requests per second, all of which will require sending the list back to clients.
Some computers may have restrictions on the firewall, so would you recommend using HTTP traffic, a custom port, or perhaps through SSH or some existing protocol?
Can someone offer some advice (threads, multiple queries of one element?), Tools, databases (mySQL?) Or APIs that will help me get started on this project? I would prefer C ++ for the backend, as it will be faster, but using Java will allow me to reuse the code.
Thanks!
source share