Skip to Content
Building a Web 2.0 Portal with ASP.NET 3.5
book

Building a Web 2.0 Portal with ASP.NET 3.5

by Omar AL Zabir
December 2007
Intermediate to advanced
307 pages
9h
English
O'Reilly Media, Inc.
Content preview from Building a Web 2.0 Portal with ASP.NET 3.5

Chapter 6. Optimizing ASP.NET AJAX

Just like other frameworks, the ASP.NET AJAX Framework is not capable of serving all of the specific needs for every type of Ajax application. Frameworks are kept simple and generic enough to satisfy 70 percent of the Ajax application’s requirements. But the remaining 30 percent of requirements require you to go deep into the framework to make the necessary modifications. Moreover, off-the-shelf Ajax frameworks don’t solve all real-life problems, and new and unique challenges always come up every now and then. In this chapter, we will review several challenges posed by Ajax applications that must be resolved for high-volume Ajax web sites. There are also several design decisions that must be made if you release it as a mass consumer Ajax web site.

Combining Multiple Ajax Calls into One Call

Network roundtrip is the most expensive part of Ajax applications. You need to do everything you can to reduce the number of calls made to the server. Because each call has the overhead of connecting to the server and then downloading the response, each call wastes some time on the network. When you have five calls going to the server within a short time for some particular operation, you are wasting about one second (assuming 200 ms network latency) on the network. So, a popular practice among Ajax developers is to batch multiple consecutive single calls into one large call. This saves the network roundtrip as there’s only one network roundtrip to do, and thus ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

ASP.NET 3.5 Website Programming: Problem-Design-Solution

ASP.NET 3.5 Website Programming: Problem-Design-Solution

Chris Love
ASP.NET 3.5 Unleashed

ASP.NET 3.5 Unleashed

Stephen Walther
The ASP.NET 2.0 Anthology

The ASP.NET 2.0 Anthology

Scott Allen, Jeff Atwood, Wyatt Barnett, Jon Galloway, Phil Haack
Professional ASP.NET 3.5 AJAX

Professional ASP.NET 3.5 AJAX

Dave Reed, Bill Evjen, Dan Wahlin, Matt Gibbs

Publisher Resources

ISBN: 9780596510503Errata Page