Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p><strong>Webservers are missing one important component...</strong></p> <p>IE. They're stateless. The whole platform of the web (and HTTP servers in general) is based on the pattern that they're stateless meaning they don't hold on to data when you switch from page-to-page.</p> <p>There are ways around the limitation. On the client-side: you can use a session to hold data while the browser is open; or cookies to store data over a longer term. On the server-side: databases are usually used to store state long-term. So...</p> <ol> <li><p>Yes, but depending on how much and how long you want to store the state of a game session, you might find that running the game server/engine separately (and not as a webserver) will give you a lot more room to scale/grow in the future.</p></li> <li><p>Yes, and no... XML/JSON is pretty much the way to pass object state around the internet because it's simple and platform-independent. Since you may/not be writing your own server backend I'd suggest you take a look into using <a href="http://en.wikipedia.org/wiki/XML-RPC" rel="nofollow noreferrer">XML-RPC</a> before you consider rolling your own solution from scratch.</p></li> <li><p>I'm not sure why you're paranoid about security. If you implement a pretty strict access policy for what an acceptable request/response cycle is there shouldn't be any issues. Like I stated before, look into XML-RPC. The key is, don't give the user access to any more of the game server data than they need.</p></li> <li><p>Nope, mostly because I don't write games. Although, I do have experience writing client/server architecture apps and it's not rocket surgery. I suggest you take a look into joining the <a href="http://area51.stackexchange.com/proposals/2825/game-development?phase=definition#tab-top">Game Development</a> Stack Exchange FAQ site that's about to hit beta.</p></li> </ol>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload