Talk:Periodic Refresh - Ajax Patterns

Talk:Periodic Refresh

From Ajax Patterns

Contents

Ajax/Javascript Programming and Usability in "Ajax Design Patterns" Book

why polling?

Do we really want to poll for information?

As I understand it, Periodic Refresh suggests that the client should query for new information with a certain refresh rate. This technique is called polling and deservedly it's frowned upon.

I'd rather let the server decide whether new information warrants a message to the client. All we need is a message channel from the server to the client. This can be implemented through an XMLHttpRequest which is not answered immediately but hangs on the server until new events happen on the server. Only then the server sends the response. -- Kabsi 07:08, 29 November 2006 (EST)