Modern browsers are turning into miniature operating systems. They can multi-task browsing processes, allocate and manage memory, collect garbage and what not. They are capable of running complex Web applications on their own with minimal Server interaction. There is now a paradigm shift in the Web Application architecture as a majority of application processing is shifting from the Server to the Web browser. The Web browser, once called a “Thin” client has become a big fat cat lately.

The Browser Wars

Meanwhile, leading browser makers are fiercely competing against each for dominance in the Web browser market share. This so-called “browser wars” has set off major developments in the capabilities of popular browsers like Internet Explorer, Firefox and Chrome as more and more features are built into them. Browsers are now capable of processing data from multiple sources like Content Delivery Networks (CDNs), Ad Networks and Analytics providers and present them to the user. Browser makers are also scrambling hard to bundle as many new features and enhancements as possible to their browsers to stay ahead in the race. Mozilla, for example, recently announced a new rapid release schedule in order to bring faster updates to their Firefox browser. Google has been doing this to its Chrome browser for a while now. However, as browser capabilities are improved, it has also introduced additional complexity to Web application architecture.

Mobile Computing and the Rapid adoption of newer Web Standards

On the other hand, W3C, the organization that sets Internet standards has also realized the need for newer Web standards in this era of Mobile computing. HTML, the core technology for structuring and presenting content for the Web is undergoing a major upgrade as part of W3C’s new HTML5 specification. Among other things, the new HTML5 standards will make it possible for users to view multimedia and graphical content on the Web without having to install proprietary plug-ins and APIs. Related standards like CSS (that defines the layout) and DOM (that defines interaction with data objects) are also getting an overhaul. Technologies like CSS3 and XMLHttpRequest (XHR) are gaining wide adoption and popularity. These newer Web standards have put the onus on the web developers and front-end engineers to build interactive web applications that are fast, highly responsive and that behave like a traditional software application.

Web 2.0 and the Semantic Web

At a time when Information technology professionals and end-users are getting acquainted with the Web 2.0 technologies, work is already underway in defining specifications for Web 3.0, what is popularly referred to as the “Semantic Web”. One can only expect rapid developments in this trend in the days ahead and this new Web application architecture is here to stay. It is also becoming more and more important that modern Web applications are developed to make best use of these technologies.

The Arrival of Mobile and Cloud computing

A recent study by Nielsen research found that 4 in 10 U.S. phones are now smartphones. Morgan Stanley also predicted that the number of Mobile Internet users will exceed Desktop Internet users by 2015. These studies and predictions aside, there is no doubt that Smartphones and Tablet PCs have revolutionized the way users browse the Web. That being said, speed and performance have become key considerations in Mobile Web application development as bandwidth has now become a limited and valuable resource.

Rapid adoption of Cloud computing technologies like Software as a Service (SaaS) and Platform as a Service (PaaS) is in a way forcing this shift in Web application architecture as Cloud computing providers deliver applications through the Internet.

Why Speed and Performance is Key in this New Landscape

One of the key driving factors behind this shift in Web application architecture is that end users have become more intolerant to slow page response times and are demanding a highly responsive and enhanced user experience. A recent study finds that an average user will not wait for more than 2 seconds for a Web page to load. At the same time, the average user has also become more sophisticated and is demanding a Web experience that is interactive, rich in multimedia and easy to use. As a result, speed and performance have taken center stage and have become primary considerations in Web application development.

Performance Bottleneck Outside the Firewall

As I said earlier, the modern Web application architecture has introduced several new components that play a vital role in determining the speed and performance of the Web application. These new components are double-edged swords. While they provide huge business benefits, these components can also turn into a potential performance bottlenecks impacting page load times and user experience. Typical performance problems involving some of these components that are outside the application firewall include:

  • Issues related to DNS caching, lookup and routing.
  • 3rd party widgets, plug-ins and buttons on the Web page could be bottlenecks.
  • Problems due to inefficient deployment of Content Delivery Network (CDN) solutions, which would mean that the CDN-based performance acceleration is not effective.
  • Availability issues arising due to Mobile network bandwidth limitations.
  • Performance issues as a result of larger file sizes and inefficient loading of JavaScript & CSS objects and modules.
  • Web app slowdowns due to Ad networks and analytics tools.
  • And so on…

Why Performance Testers should care?

For so long, we performance testers have been focusing our testing efforts mainly (or in many cases, ONLY) on Server performance. Rightly so, since a bulk of the application processing was happening at the App and the Database tiers. However, the paradigm shift in Web application architecture has turned Web pages into Rich Internet Applications. This shift not only affects Web architects and designers, it also changes the way Software testers look for defects in modern Web applications. Performance testers, in particular will have to re-think their strategy around testing Web applications for Performance.

The traditional focus on just Server Performance and Optimization is not adequate anymore. It is like looking at only one side of a coin and as you know, every coin has two sides. A new field within Performance Engineering called Web Performance and Optimization is emerging and it is high time Performance testers take a note of it.

About the Author

Suraj Sundarrajan is passionate about making Web applications run faster. He currently works for TransUnion as a Senior Performance Test Engineer, where he helps optimize the performance of their Web & Mobile applications. He has been in the field of Performance Engineering for more than 8 years with extensive experience in designing, building and executing performance, scalability and capacity tests for high-volume and business-critical enterprise applications.

Suraj currently focuses on latest developments in Web Performance, Cloud Computing, Test Automation & Agile methodologies. Follow him on twitter @perfengineering.

Similar Posts