Better AJAX Chat

Posted by Gavin Doughtie Sat, 08 Oct 2005 20:39:00 GMT

So the demos I've been doing at Web 2.0 of xdraw, my shared vector-drawing application, have been using the fairly brain-dead "web page polls the server continuously for changes" approach to AJAX chat. Naturally, this is pretty bad for the health of my server (50% CPU consumption anyone?). The better approach is to have the server hold open the connection and jam data down the pipe whenever something changes. This is the system used by jotspot and the HTTP.push library. Stay tuned as I turn it on.

Posted in Web 2.0, Software, Ruby, AJAX, Javascript | no comments | no trackbacks