Reply to Re: Ajax asynchronous is it possible ?

Your name:

Reply:


Posted by Jan Thomä on 08/23/07 12:15

> 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


--
_________________________________________________________________________
insOMnia - We never sleep...
http://www.insOMnia-hq.de

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация