Monday, May 21, 2012

Ajax vs Comet (not a chat application)

I've developed a web-based application in which a signed in user should send a message to the server telling he is still online every 3 seconds. The message is then processed by the server and a stored procedure is called in Mysql to set the user's status to online.
I've looked in to similar issues in which Comet and Ajax are compared (here or here) but considering that 3 second delay is acceptable and maximum users of 1000 are online in the system, is using Ajax a wise choice or Comet should be used?





1 comment:

  1. If the main purpose is presence, then consider XMPP as an alternative to AJAX. http://www.dynamicalsoftware.com/ajax/xmpp goes into more detail on the advantages to this approach even when the application is not about chat.

    ReplyDelete