* AJAX and Data Latency
Posted on June 28th, 2005 by Dave Johnson. Filed under AJAX.
I stumbled across a blog by Jonathan Boutelle from almost a year ago now about pre-loading data and latency issues in web applications. With the recent rise of Ajax to super stardom(ish) it seems even more applicable today. He makes good points about comparing the value of reduced latency to the cost of download and factoring those against the odds that data will be requested.
Today, however, in the age of Ajax what may be a more important question is how to determine when and how much data to load rather than if one should simply pre-load data in general - of course the two are inherently intertwined. The most important reason for using Ajax in my mind is to be able to pre-loading a small subset of data (data that is going to be needed almost no matter what) and allow the user interactions to define what other data is loaded.
I would say that Ajax is the solution for dealing with large data sets on the web.
For example, if you are browsing your emails in Oddpost you only want to pre-load the latest 10 emails that the user needs to see on the screen (and realistically maybe a few more) and then if the user begins to scroll through their emails, requests to the server need to be made to get more data. To determine how many new email records to request one must consider the rate at which the user is scrolling (this will also determine how far ahead we need to buffer) and the time it takes to retrieve the data - there will be some optimum number of records to request and some optimum record buffer size given the latency of the requests to the server.
Of course this also brings up the issue to bloated XML requests (read SOAP) to get data from the server but I will talk about that tomorrow maybe.
Leave a Reply
Recent Posts
- BlackBerry JavaScript Oddities
- JavaScript Event Merging
- Smart Grid Utilities
- PhoneGap Desktop
- Crockford Facts
Archives
- July 2010
- June 2010
- April 2010
- March 2010
- February 2010
- January 2010
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
- August 2006
- July 2006
- June 2006
- May 2006
- April 2006
- March 2006
- February 2006
- January 2006
- December 2005
- November 2005
- October 2005
- September 2005
- August 2005
- July 2005
- June 2005
- May 2005
