Serverside memory efficiency and threading for a turn based game

Posted by SkeletorFromEterenia on Game Development See other posts from Game Development or by SkeletorFromEterenia
Published on 2012-05-30T12:03:17Z Indexed on 2012/05/30 17:02 UTC
Read the original article Hit count: 328

Im programming on a turn based war-game for some years now (along with the engine) and Im having quite a hard time at figuring out what the games server architecture should look like, since most game server architecture articles I found focus either on FPS oder MMOGs, which doesn't really fit since I want many matches with 1- 16 players on my server, with each match being played in turn based mode.

My chief concern is memory usage, since the most basic approach of loading every game that is being played completely into RAM should be quite inefficient, so is there a suitable strategy for selecting only the needed bits and loading them?

Another question I got is how to design the threading on the server, since I think using only a single thread could be a problem due to the fact that the game or part of it might have to be loaded from the database.

I would be very happy if you could share your knowledge or point me to material on this topic.

© Game Development or respective owner

Related posts about server

Related posts about multithreading