O'Reilly logo

Microsoft® ASP.NET and AJAX: Architecting Web Applications by Dino Esposito

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The Timeout Pattern

The beauty of AJAX is that you can serve your users Web applications that present live data, such as news and any other streamed content. Although mashup pages with live data are helpful for users—and are an essential part of the user experience—they definitely put a lot of pressure on the server that provides the service. This pressure isn’t too bad if there’s also a live user viewing and consuming that stream of data.

In particular with multitab browsers, it’s easy for users to forget about a page opened in a hidden tab that regularly, and frequently, polls the server for fresh data. So it happens that users leave a workstation for hours while the application, unaware of the user’s absence, keeps on polling.

A well-designed ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required