|
Posted by Piotr Nowak on 08/23/07 13:09
Jan Thomä pisze:
>> There's a server-push technique, but it involves flash or java applet
>> http://www.bluishcoder.co.nz/2005/11/more-on-ajax-and-server-push.html
>
> I am not quite sure, if this is the way to do it. Given you have 10k
> players, you would have 10k persistent connections on the server. IMHO this
> server push isn't a real push anyways, its just a glorified pull. Question
> is, how does an attack work anyways? Does the user need to immediately
> reply to an attack? What is if the user is offline when he is attacked?
> Maybe one could set like a 24 hour response time to an attack, which would
> eliminate the need for an immediate notification. A check every 20 minutes
> or so would be enough then and would put a lot less stress on the server.
> The other possibilitiy is to send the data everytime the user loads a new
> page (which is something he probably has to do anyways when playing the
> game). This would keep the notification overhead low and still allow for a
> somewhat timely notification at least if the user does something other than
> wait before his screen... How about that?
>
> Best regards,
> Jan
>
>
Seems to be quite interesting idea.
will see on simple app how does it work !
THANK YOU !
Navigation:
[Reply to this message]
|