| By RIA News Desk | Article Rating: |
|
| July 13, 2006 10:45 AM EDT | Reads: |
7,541 |
Wael Chatila, on his website www.waelchatila.com, speaks about a new design pattern that he and partner Will Glass call the “W AJAX Pattern”. Wael says that the design pattern was discovered while they were discussing the loading time of a web application they were working on.
Apparently, the web app front basically consists of a Google Map plus a form. The user could search for an address/place or, interactively on the map, select a boundary area for the search. When the search is submitted to the webserver, the webserver sends off an additional request to a 3rd party geodata server for the purpose of retrieving geocoding data plus demographical data. The problem is that this request to the 3rd party geocoding provider takes some time. The end result would be a wait for about 7 seconds between the time the search was submitted and the end resulting page showed up.
Wael included the following picture to depicts the scenario.

1. User submits a search request with HTTP POST
2. A blocking request to the geodata server is issued
4. Geodata retrieved and results are sent back to the browser
5. Data received by browser
6. Browser finished processing and rendering the data and page fully displayed.
Wael says that a way to reduce the response time is to utilize some AJAX. He goes on to describe the idea. When the search request arrives at the webserver, a new thread associated with the http session is spawned with the task to asynchronously do the 3rd party geodata request. Control is immediately returned back to the browser with no geodata. The browser, upon getting the no geocode data immediately sends of an AJAX request (asynchronous by nature) while it continues to render the web page with images, the Google Map, tables etc. This rendering takes some time to happen and by the time the rendering is done the AJAX request has landed at the webserver and is doing a blocking wait for the spawned geodata server request. When the 3rd party request is done, data is very quickly returned back to the browser (once again one of the natures of AJAX) and the rendered page is updated using DHTML. All in all reducing loading time, but more importantly reducing perceived responsiveness for the user.
Published July 13, 2006 Reads 7,541
Copyright © 2006 SYS-CON Media, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
More Stories By RIA News Desk
Ever since Google popularized a smarter, more responsive and interactive Web experience by using AJAX (Asynchronous JavaScript + XML) for its Google Maps & Gmail applications, SYS-CON's RIA News Desk has been covering every aspect of Rich Internet Applications and those creating and deploying them. If you have breaking RIA news, please send it to RIA@sys-con.com to share your product and company news coverage with AJAXWorld readers.
- Cloud Expo New York Speaker Profile: Mark Hinkle – Citrix Systems
- Big Data Expo New York Speaker Profile: Eric Baldeschwieler – Hortonworks
- IBM Rips Out Its Siebel Seats
- IBM & Red Hat Will Reportedly Join OpenStack
- Cloud Expo New York: Industry-Leading CxOs to Present June 11-14
- System Center Virtual Machine Manager 2012 as Private Cloud Enabler
- Big Data: The ‘Perfect Storm’ Syndrome
- Virtual Private Cloud Computing vs. Public Cloud Computing
- Eighteen Open Source Content Management Systems (Part 3)
- Big Data: Information Spawns Innovation
- MapR Adds Hadoop Connectors
- OpenNebula: Open Source Cloud Management
- Red Hat Executive Appointed to Technology Services Industry Association (TSIA) Support Services Advisory Board
- Cloud Expo New York Speaker Profile: Mark Hinkle – Citrix Systems
- Big Data Expo New York Speaker Profile: Eric Baldeschwieler – Hortonworks
- IBM Rips Out Its Siebel Seats
- Hadoop Quickstart: Create and Better Manage Hadoop Clusters on Rackspace
- IBM & Red Hat Will Reportedly Join OpenStack
- Cloud Expo New York: Industry-Leading CxOs to Present June 11-14
- Apache Hadoop: Now, Next, and Beyond at Cloud Expo New York
- System Center Virtual Machine Manager 2012 as Private Cloud Enabler
- Big Data: The ‘Perfect Storm’ Syndrome
- Virtual Private Cloud Computing vs. Public Cloud Computing
- Eighteen Open Source Content Management Systems (Part 3)
- After Ubuntu, Windows Looks Increasingly Bad, Increasingly Archaic, Increasingly Unfriendly
- SCO CEO Posts Open Letter to the Open Source Community
- Simula Labs Launches Hosted Delivery Platform To Enable Enterprise Open Source Adoption
- Where Are RIA Technologies Headed in 2008?
- Source Claims SCO Will Sue Google
- How Open Is "Open"? – Industry Luminaries Join the Debate
- Latest SCO News is Plain Weird
- SCO Claims Linux Lifted ELF
- IBM Tells SCO Court It Can't Find AIX-on-Power Code
- Flashback: Investing in 'Professional Open Source' - Exclusive 2004 Interview with David Skok, Matrix Partners
- Developing an Application Using the Eclipse BIRT Report Engine API
- HP Starts Pushing Desktop Linux
















