asp.net mvc - MVC3 online game with standalone C++ server -
i'm interested in making web game using mvc3 (or 4) front-end website, since web framework i'm comfortable working with. sake of example, let's it's real-estate game (fun!..)
i've thought long , hard how in scalable way, , i've arrived following little questions/dilemmas:
1) code game server logic actual web server itself.
advantage: web server make direct use of entity framework, fantastic data manipulation.
problem: not scalable - game pretty limited single server, potentially become over-populated , slow. potentially work if used each web server single 'realm', might put lot of load on database server if 10 'realms' running.
2) code game server logic separate c++ executable, perhaps on separate machine.
advantage: scalable - have multiple web front end servers connected game server , not have outages if 1 web server down.
problem: difficult communicate between web server , game server. presumably, i'd need setup socket connections , establish kind of protocol of communication (maybe using xml). additionally, game server need become responsible data storage seems awful waste of mvc's elegant support entity framework. simple in mvc3 checking see if exists in database become pretty laborious task if socket query server required.
if has experience kind of problem, shed light on how might best approach it?
if write asp.net application, why don't try out wcf , write game server logic .net? wcf communication stuff, while configuration can little bit tricky.
Comments
Post a Comment