AJAXWorld 2007 January Article

From MemberWiki

Jump to: navigation, search

A snapshot of this wiki page was taken on 01Dec, just after this comment was added to the wiki page. The snapshot will be sent to AJAXWorld for inclusion in the January edition of their magazine.


When Does Ajax Make Business Sense?

Hard-nosed executives recognize that there are costs associated with any benefit. In order to convince today’s upper-level decision makers to approve strategic investments, they need to hear more than phrases like "essential to the business," "the results are too unpredictable," and "yields intangible benefits." In the world of Web development, the move from HTML to Ajax-powered HTML often can be achieved at a relatively low cost, but there are both direct and indirect costs associated with Ajax that must be taken into account. A close analysis of these factors will enable business managers to make more well-informed decisions when considering Ajax adoption within a particular application and across their organization.

Let's first look at the expected benefits from Ajax.

Ajax is all about ways to create a more interactive and productive connection between a user and a Web-based application. Because Ajax provides similar advanced user interface features to those in desktop applications (such as advanced UI controls, animated effects and adjustable layout controls) -- thereby providing the visual and interaction tools needed to make the application self-explanatory -- users spend less time learning and operating the application. The Ajax partial page update feature minimizes user delays by eliminating the "click, wait, and refresh" approach of pre-Ajax HTML applications.

Beyond better user interfaces for existing applications, Ajax enables new classes of applications that fall under the umbrella term "Web 2.0" and that also fit into a service-oriented architecture (SOA). Among the next-generation applications that will power the enterprise and the Internet of the future are the following:

  • Users as co-developers - New Ajax-powered environments, such as "application wikis," are empowering users to create their own customized mashups that include personalized dashboards and situational composite applications.
  • Collaboration - Ajax technologies are typically the centerpiece of Web 2.0 information collection and sharing environments that harness the collective intelligence of disparate communities.
  • Software above the level of a single device - Web 2.0 is accelerating the movement from installable desktop applications to Web-based applications, thereby leveraging the advantages of networks and information sharing.
  • Cross-device applications and mobility - Simultaneous with the adoption of Web 2.0 is the growing proliferation of Web-capable mobile devices. Ajax technologies enable Web 2.0 applications across both large-screen desktops and small-screen mobile devices.

Ajax often boosts developer productivity. There are many Ajax technology providers, including both commercial products and open source initiatives. As a result, developers will find the off-the-shelf components, toolkits, frameworks, educational materials, and other resources they need to produce and maintain next-generation Web 2.0 applications built with Ajax. And due to open source alternatives, Ajax provides zero-cost deployment options as well.

Because of competitive pressures, vendors often vie for your Ajax business based on the developer productivity benefits they offer. Two common productivity features are UI markup languages (UIMLs) and IDE integration. The UIMLs allow for the use of declarative approaches using HTML and/or XML for large parts of an Ajax application. IDEs can provide source code completion, source code highlighting, drag-and-drop authoring, Javascript debugging, XHR monitors, run-time stack views, and variable watching.

Ajax and SOA need each other in order for both to reach their full potential. SOA's encapsulation of business functionality into discrete services with well-defined Web service interfaces makes it easier for Ajax toolkits to facilitate the creation of Rich Internet Applications (RIAs). Ajax applications need to leverage business functionality, but, in the absence of SOA, Ajax toolkits must have myriad adapters supporting disparate technical means of accessing that functionality. The more that SOA advances, the more that the toolkits will be able to streamline access to business functions by supporting Web service client technology. Thus, SOA helps to move Ajax forward.

Conversely, Ajax helps SOA move forward. We need RIA technologies to be able to fully exploit and justify the significant investment that SOA entails. The ability to create mashups, dashboards, and composite applications relatively rapidly in order to respond flexibly to changing business conditions is the essence of the ROI that we expect from investing in SOA.

In addition, Ajax deployment offers several long-term strategic benefits, including:

  • Replacement for desktop applications - Ajax offers a desktop-like user experience while retaining the benefits of server-based application deployment, centralized infrastructure administration, easier scalability, and immediate availability of application updates to all users. As a result, Ajax helps accelerate the movement away from installable, two-tier, client-server applications to multi-tier web applications.
  • Higher customer expectations around user interface - The industry is embracing richer, more desktop-like, user interfaces for customer-facing Web applications. In many circumstances, adopting Ajax techniques is becoming a business requirement to maintain parity with the rest of the industry and match growing user expectations about Web-based user experiences.
  • Operations efficiencies - In today's global economy, cost efficiency is more important than ever. Ajax techniques can help maintain efficiency and competitiveness of internal systems.

What are the costs associated with Ajax?

The costs for adopting Ajax depend on the circumstances of the application you are developing. In cases where Ajax snippets are added to existing HTML applications in an ad hoc manner, the incremental costs can be small. On the other hand, if the Ajax deployment strategy requires significant retooling of the existing IT infrastructure and substantial staff re-training, then costs obviously go up.

It’s also important to keep in mind that Ajax techniques require developers to learn techniques on both the client side as well as the server side.

On the client side, developers may need to familiarize themselves with one or more Ajax client-side toolkits, along with programming techniques for incremental DOM updates, XHLHttpRequest-based client-server communications, and asynchronous communications event handling. Most of these techniques require incremental knowledge on top of existing expertise with HTML and JavaScript.

On the server side, re-education requirements depend on the Ajax toolkits in use. For some toolkits, developers may need to familiarize themselves with the Ajax toolkit's UI markup language and its server-side Ajax APIs.

Most Ajax applications leverage an Ajax framework but still require some level of customization by the development team. A key factor in calculating the cost of adopting Ajax is the amount of customization work required to complete the task. If the Ajax framework's built-in features are sufficient for your needs, then your Ajax development costs will be lower.

For existing applications that are modified to take advantage of Ajax techniques, end users will require some re-training on the applications' new Ajax-powered user interfaces.

New issues to manage

Like anything else, the Ajax technique of partial data exchange can be misapplied such that server and network loads increase in an undesirable manner. It is thus critical that Ajax developers are made aware of the importance of these issues and that bandwidth behavior is tested before applications are deployed.

Another concern is misapplication of Ajax "push techniques," where Ajax toolkits enable servers to push incremental data to clients without requiring clients to poll periodically. Developer education about these issues and pre-deployment testing of the application's network behavior are important.

Mashups enable the ability to plug in third-party components with potential security implications. It is recommended that IT managers establish a company policy on mashup products and technologies, such as only installing markup frameworks from trusted suppliers; only allowing components from trusted sources; and requiring secure gateway facilities that control the domains with which particular components can communicate.

Typically, each Ajax toolkit has its own features, markup and APIs. Long-term maintenance costs will be minimized if the application uses a popular Ajax toolkit that is familiar to a large pool of developers and by ensuring that the Ajax toolkit is OpenAjax Conformant. (See Managing Long-Term Costs with Help from OpenAjax.)

Other factors to consider

Let’s now take a look at some additional key considerations in the cost/benefit analyses of adopting Ajax and determining ROI. Some important points to keep in mind include:

  • Interaction and user experience requirements - If a given application requires either high levels of responsiveness to the user (that is, it is undesirable to use the old-style "click, wait, refresh" HTML technique) or requires a self-evident, desktop-like user interface (such as to limit training costs), then Ajax techniques can reduce user wait time and improve productivity in a measurable way.
  • Network bandwidth requirements - Applications that generate high levels of network activity often benefit from Ajax techniques by leveraging the partial data exchange and partial page update features associated with Ajax. Ajax techniques often replace full page requests with small data exchanges, reducing network bandwidth requirements, minimizing server CPU processing, and improving response times.
  • Scalability requirements - Large and/or growing user populations require scalable application deployment architectures. In such scenarios, it is critical to determine whether the Ajax-enabled application offers appropriate scalability characteristics.
  • Mission critical nature of the application - The greater the strategic value of the application, the greater the investment in RAS (reliability, availability, serviceability) required. Highly mission critical applications may be less desirable early candidates, but offer the highest ultimate return.
  • Complexity of database interaction - Ajax will be more difficult to apply where there is not a good separation of back-end databases from Web-tier application logic. Relevant questions to consider: Is the application tightly coupled to a backend database? To what degree is transaction integrity and recoverability critical, and how do these factors relate to Ajax partial update techniques?
  • Real-time nature of the underlying application - In general real-time monitoring and real-time business applications benefit significantly from Ajax, particularly the push technologies that are available in some Ajax toolkits.
  • Systems integrator requirements - If the application requires involvement of a systems integrator, then it is important to determine the familiarity of the systems integrator with Ajax and the Ajax toolkits that you plan to use on the project.

Managing Long-Term Costs with Help from OpenAjax

OpenAjax Alliance produces various specifications that define "OpenAjax Conformance." an industry trust mark that promotes interoperability. As OpenAjax Conformance specifications emerge, customers who require compliance from their Ajax vendors will increase their interoperability, safety and choice, and thereby help manage the long-term costs of adopting Ajax.


The move to Ajax is part of business operations strategy and is often coupled with the move to SOA. Arriving at estimates of return on Ajax or SOA is a difficult challenge for IT managers and executives. IT can support and even lead the effort by providing recommendations on appropriate questions to ask the business side of the house. IT can also help generate the answers needed to estimate ROI. Establishing an IT-User team to help the business drive the direction of the Ajax effort can be a forum for confirming and refining ROI estimates. Making the leap to Ajax isn’t something that can be done overnight or with the snap of your fingers. It involves serious consideration and an honest internal evaluation. But by taking all of these points into account, decision makers will be better equipped to pave the way toward Ajax adoption.

Jon Ferraiolo is the acting director of OpenAjax Alliance

OpenAjax Alliance is an organization of more than 50 leading vendors, open source projects, and companies using Ajax, all working together to accelerate industry adoption and success with open and interoperable Ajax-based Web technologies. For more information, see the OpenAjax Alliance Web site: .

Personal tools