Flash browser game - HTTP + PHP vs Socket + Something else

Posted by Maurycy Zarzycki on Stack Overflow See other posts from Stack Overflow or by Maurycy Zarzycki
Published on 2011-02-16T15:12:23Z Indexed on 2011/02/16 15:25 UTC
Read the original article Hit count: 185

Filed under:
|
|
|

I am developing a non-real time browser RPG game (think Kingdom of Loathing) which would be played from within a Flash app. At first I just wanted to make the communication with server using simply URLLoader to tell PHP what I am doing, and using $_SESSION to store data needed in-between request.

I wonder if it wouldn't be better to base it on a socket connection, an app residing on a server written in Java or Python. The problem is I have never ever written such an app so I have no idea how much I'd have to "shift" my thoughts from simple responding do request (like PHP) to continuously working application. I won't hide I am also concerned about the memory and CPU usage of such Server app, when for example there would be hundreds of users connected. I've done some research.

I have tried to do some research, but thanks to my nil knowledge on the sockets subject I haven't found anything helpful. So, considering the fact I don't need real time data exchange, will it be wise to develop the server side part as socket server, not in plain ol' PHP?

© Stack Overflow or respective owner

Related posts about php

Related posts about flash