Web Performance 101: 4 Recommendations to Improve Web Performance
Web Performance and the impact of SPDY, HTTP/2 and QUIC
April 22, 2016

Jean Tunis

Share this

As websites continue to advance, the underlying protocols that they run on top of must change in order to meet the demands of user expected page load times. This blog is the second in a series on APMdigest where I will discuss web application performance and how new protocols like SPDY, HTTP/2, and QUIC will hopefully improve it so we can have happy website users.

Start with Web Performance 101: The Bandwidth Myth

Here are some common recommendations to optimize the steps of a web page request. Having looked at a number of web applications over the years, there have been numerous recommendations I have made over and over. Each web app is different, so these recommendations don't apply to every one of them, but should offer some guidance.

1. Reduce latency between user and server

I talked about this one in my last blog. It's not the bandwidth that matters most; it's latency. You need to reduce time it takes for a packet to go from your user or visitor to your server.

Whether the users are coming from the Internet or within the Intranet, the goal is to make the latency is short as possible. You can't get around the physics around distance, but there are some things you can do.

Externally, you have CDN providers that can help caching. Internally, you can deploy WAN optimization devices to do the same, and more.

If you have more control, you can simply ensure that your application is used by those who are closer to the server.

Closer distance between user and server can mask a lot of issues with an efficient application.

2. Increase number of connections, but up to a point

You want to maximize the number of connections you are making to the server to get as much data back to the visitor as possible. With HTTP/1.1, you don't want just one connection.

But you don't want too many connections either. Too many will start to impact the resources on both the server and the visitor's PC. And that would be bad for web performance.

Opening up these connections takes time as well. The TCP 3-way handshake needs to occur. It would occur every time, and if latency is not low enough, site visitors are impacted by this for every new connection that gets opened.

3. Compress all data

You want to minimize the amount of data that gets sent to the visitor's browser for it to download or render on the computer screen. So file sizes should only be as big as they need to be. If they cannot get any smaller, they should be compressed if that's possible.

This is something that doesn't happen enough. Nearly every modern browser supports gzip compression, yet some servers out there still do not have it implemented.

4. Increase server resources

Like bandwidth, server resources have become less of a constraint over the years. We now have multi-core, GHz processors, TB storage, GB RAM, etc. But there are still times when a website is using up these resources, and the immediate way to reduce response time may be to increase server resources. Due to the availability of such resources, it's usually not a big issue upgrading.

There are many other recommendations. This is just a sample of the things that can be done to improve web performance.

In upcoming blogs on APMdigest, I will explore the impact of SPDY, HTTP/2 and QUIC on web performance.

Jean Tunis is Principal Consultant and Founder of RootPerformance
Share this

The Latest

November 23, 2021

The holidays are almost upon us, and retailers are preparing well in advance for the onslaught of online consumers during this compressed period. The Friday following Thanksgiving Day has become the busiest shopping day of the year, and online shopping has never been more robust. But with supply chain disruptions limiting merchandise availability, customer experience will make the difference between clicking the purchase button or typing a competitor's web address ...

November 22, 2021

The 2021 holiday season will be an inflection point: As the economy starts to ramp up again while the country still grapples with the pandemic, holiday shopping will be the most digital holiday season in history by a long shot ... The work must begin months before, as organizations learn from the year prior and take steps to improve experiences and operations, fine-tune systems, plug in new data sources to enrich machine-learning algorithms, move more workloads to the cloud, automate, and experiment with new tech. These efforts culminate in "API Tuesday" ...

November 18, 2021

Most (83%) of nearly 1,500 business and IT decision makers believe that at least 25% of their workforce will remain hybrid post-pandemic, according to the Riverbed | Aternity Hybrid Work Global Survey 2021. While all indicators signal hybrid work environments are the future, most organizations are not fully prepared to deliver a seamless hybrid work experience ...

November 17, 2021

The results of the 2021 BMC Mainframe Survey highlight the consistent positive growth outlook as seen in recent years, with 92 percent of respondents viewing the mainframe as a platform for long-term growth and new workloads, and 86 percent of extra-large shops expecting MIPS (millions of instructions per second) to grow in the coming year. This is not surprising, considering the disruptive nature of the modern digital economy ...

November 16, 2021

With an accelerated push toward digital transformation, organizations everywhere are trying to find ways to work smarter, not harder. A key component of this new model is finding ways to automate business processes — freeing up employees to focus on more strategic, valuable work and improving customers' experiences. Today's enterprise IT leaders have many options to help drive automation initiatives — from digital process automation and artificial intelligence (AI) to enterprise content management and robotic process automation (RPA) ...

November 15, 2021

Most (83%) companies would suffer business damage during the first 24 hours of an outage and thereafter, according to Pivoting to Risk-Driven Security Operations, a report from Netenrich based on a global survey of IT and security professionals ...

November 10, 2021

More than half (60%) of workers said new software had occasionally or frequently frustrated them within the past 24 months, according to a new survey by Gartner ...

November 09, 2021

Everyone laments technical debt like it were a high-interest credit card. But just like how your CFO uses debt as capital for the business, the intelligent Product Manager knows that technical debt can help finance your path to market if you know how to manage it well ...

November 08, 2021

Artificial intelligence (AI) may be the brains, but when the market hears the term "AIOps," it puts automation in the mix. After all, what is the use of knowing without doing? ...

November 03, 2021

How do you ensure your journey to automated IT Ops is streamlined and effective, and not just a buzzword? ...