Reconsidering Ajax?

by Peter Saint-Andre

2005-06-02

In reconsidering Ajax, Adam Bosworth, seems to be considering XMPP:

The browser isn't a good listener to external events. If you want to build an application, for example, to show you instantly when someone bids or a price changes, it is hard. You can poll, but poll too frequently and the application starts to feel sluggish and it isn't easy to do this. What you really want is an event driven model where in addition to the events like typing the page can describe events like an XMPP message or a VOIP request or a data-changed post for an ATOM feed.

Polling bad. Sure, you can use XMLHttpRequest to your heart's content, but isn't it better to push events to the browser than to continually check to see if something interesting has happened? The core XMPP protocol might solve some of the difficulties with listening for events in Ajax, as might the XMPP publish-subscribe extension.

Just a thought. ;-)


Peter Saint-Andre > Journal