Advantages and disadvantages of an ajax based client application

11
Advantages And Disadvantages Of An Ajax-based Client Application Irinel Bucur Andreea Bucur

description

Conduct a study regarding advantages and disadvantages of an Ajax-based client application. Minimum two case studies will be addressed (at least one regarding the interaction between users and specific handheld devices).

Transcript of Advantages and disadvantages of an ajax based client application

Page 1: Advantages and disadvantages of an ajax based client application

Advantages And Disadvantages Of An Ajax-based Client

Application

Irinel BucurAndreea Bucur

Page 2: Advantages and disadvantages of an ajax based client application

• Ajax (also AJAX; an acronym for Asynchronous JavaScript and XML) is a group of interrelated web development methods used on the client-side to create asynchronous web applications.

• Despite the name, the use of XML is not needed (JSON is often used instead), and the requests do not need to be asynchronous.

What is Ajax?

Page 3: Advantages and disadvantages of an ajax based client application

A little history

• In ‘90s, most websites were based on complete HTML pages;

• In ’95 when Java Applets were introduced, Asynchronous loading of content became practical;

• In ‘96, Internet Explorer introduced IFRAME element which enables asynchronous loading as well.

Page 4: Advantages and disadvantages of an ajax based client application

A little history – Thanks to Microsoft

• In April 2000, Microsoft patented the basic Ajax technology, granted in 2006.

• In ‘99, Microsoft created XMLHttp ActiveX control which was adopted later by Mozilla, Opera, Safari as XMLHttpRequest JavaScript object.

• In 2006, W3C released the first draft for XMLHttpRequest specifications in order to create an official web standard.

Page 5: Advantages and disadvantages of an ajax based client application

Traditional vs. Ajax model

• While the server is doing its thing, what’s the user doing?

Page 6: Advantages and disadvantages of an ajax based client application

Traditional vs. Ajax model - 2

Page 7: Advantages and disadvantages of an ajax based client application

Transferred data

• Merrill found a 61% improvement due to the use of AJAX.

• AJAX application transferred on average 27% of the bytes that the traditional HTML application transferred.

• White reported a 73% performance increase for bytes transferred and 16% increase in server generating query.

* Smullen - White reported a 73% performance increase for bytes transferred – March 2008 (http://www.academypublisher.com/jsw/vol03/no03/jsw03033037.pdf)

Page 8: Advantages and disadvantages of an ajax based client application

Advantages

• Source code can be very well structured.• 73% performance increase in terms of used

bandwidth.• Maintain only one server-side code for Mobile and

other browsers.• Maintenance costs are cheaper.• New server side developments are easy to

implement.• Ajax source code can be tested automatically.• User input can get server side validated on the fly.

Page 9: Advantages and disadvantages of an ajax based client application

Disadvantages

• High costs to implement the solution.• Server load is increased by 16%.• Deployment is not very fast since it may involve lots

of scripts to get uploaded.• New programmers needs long training period.• Experienced designers are needed.• A small change in look and feel may not be all the

time easy and fast to implement.• Costs with the servers hardware may increase.

Page 10: Advantages and disadvantages of an ajax based client application

Questions?

Questions?

Page 11: Advantages and disadvantages of an ajax based client application

Thank you

Thank you!