This blog is the final installment in a 5-part series on APMdigest where I 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.
It has been almost a year since HTTP/2 has been a ratified standard. I talked about how widely support it is - only 4% of the top 2 million Alexa sites truly support it.
Does your website support it? What about your web host provider?
One place to check is the Google Chrome browser itself by going to Chrome Web Tools.
By now, most web browsers support the new version of HTTP. The top five, Chrome, Firefox, IE/Edge, Opera and Safari all support HTTP/2, at least partially. The top two widely used web servers, Apache and Nginx, support it as well.
Previously, I mentioned a number of workarounds that developers used to make their websites faster with HTTP/1.1. Now with HTTP/2, some of these workarounds can actually degrade performance with HTTP/2 implementation.
With only one connection per host that is allowed with HTTP/2, domain sharding can hurt a developer's attempt to improve performance. So if there was used previously, an upgrade to HTTP/2 means that the domains must be unsharded.
However, care must be taken with this. Doing this must be tested on a case-by-case basis. Some large files are able to compress better than smaller files. So it may not be to your advantage to uncombine the files if you have a lot of smaller files.
Inlining scripts directly into the HTML was another way to reduce the number of connections and round-trips to the server. With HTTP/2, this is no longer needed with only one TCP connection.
HTTP/2 Pros & Cons
There are number of advantages of using HTTP/2, including:
■ Substantially and measurably improve end-user perceived latency over HTTP/1.1 using TCP
■ Address the head of line blocking problem in HTTP
■ Not require multiple connections to a server to enable parallelism, thus improving its use of TCP
■ Retain the semantics of HTTP/1.1, like header fields, status codes, etc.
■ Clearly define how HTTP/2.0 interacts with HTTP/1.x via new Upgrade header field
But, despite these advantages, there are still some disadvantages that the new protocol version has not addressed.
Some disadvantages are:
■ Unable to get around TCP head of line blocking, particularly during packet loss
■ TCP's congestion avoidance algorithm increases serialization delay
■ TLS connection setup still takes time
■ Binary format (for people like me) makes troubleshooting a bit more difficult, not being able to see plaintext, without TLS encryption keys
We Need to Be QUIC
So we see that we still have a number of limitations even with HTTP/2. Although, I have to admit, the last one is somewhat selfish.
One big limitation is the TCP protocol. Due to its connection-oriented nature, there's no getting around the head of line blocking and the time it takes to open and close the connection.
Google wanted a way around this, and in 2012 set out to develop a protocol that runs on top of UDP, which is connectionless protocol. The protocol is called Quick UDP Internet Connections, or QUIC. Another clever name by Google?
Clever or not, Google needed a protocol with quicker connection setup time and quicker retransmissions. Unlike TCP, UDP would allow for this. They wanted to take some of the benefits of the work done with SPDY, that ultimately went into the HTTP/2 standard, such as multiplexed HTTP communication, but running over UDP rather than TCP.
The main goal? To reduce overall latency across the Internet for a user's interactions.
QUIC implements various TCP features, but without the limitations, such as the round-trip time for connection setup, flow control, and congestion avoidance. With UDP's connectionless orientation, RTT is zero since UDP just starts sending data when it needs to rather than talking to the other side to ensure it's available to talk.
Where is QUIC?
The most common place I've come across QUIC being used is on YouTube.
Have you ever compared the speed of a YouTube video compared to some of the other providers like Wistia and Vimeo? Where I live, I'll be lucky to get 3Mbps from my ISP. Watching a video on YouTube rarely buffers. I can almost always count on buffering when watching a video hosted on Wistia or Vimeo. As you can see in the screenshot below, the protocol being used on YouTube is a mix of QUIC and SPDY.
Contrast that to the screenshot I took from Wistia's site, below.
They are still largely using HTTP/1.1. They're not even on HTTP/2 yet. I'm sure they are doing a number of other things to make their web properties faster, but that explains to me why I rarely get any buffering on YouTube compared to Wistia.
If the speed with which SPDY was tested and went into the HTTP/2 standard, which took about three years from SPDY draft release to HTTP/2 draft release, is it possible that we could have a replacement for the TCP protocol on the web in the next couple of years? This should be interesting and exciting!
Jean Tunis is Senior Consultant and Founder of RootPerformance.
The Holiday Season means it is time for APMdigest's annual list of Application Performance Management (APM) predictions, the most popular content on APMdigest, viewed by tens of thousands of people in the IT community around the world for more than a decade. Industry experts offer thoughtful, insightful, and often controversial predictions on how APM, AIOps, Observability, Open Telemetry, and related technologies will evolve and impact business in 2022 ...
As organizations strive to advance digital acceleration efforts, outpace competitors, and better service customers, the path to better, more secure software lies in AIOps. As DevOps teams continue to adopt progressive delivery models and the volume of production deployments and configuration changes sees even more growth, here are a few of the things that your DevOps teams should keep in mind, as they look to make the most of their IT toolkits via AIOps ...
In the old days of monolithic architectures, IT operations teams could manage service-disrupting incidents themselves. But these architectures have evolved, and the systems our digital economy relies on today are too complex and produce too much data for human operators to monitor, let alone fix. Artificial Intelligence for IT Operations (AIOps) solutions automate system monitoring and remediation strategies to help DevOps and SRE teams ensure that services and apps are continuously available ...
As global and emerging technology trends continue to drive the network to evolve at an accelerated pace, we wanted to better understand the current trends and challenges these teams face. As a result, LiveAction conducted a survey of networking professionals that on average manage more than 500 networking devices at organizations with more than 600 employees. Let's dive into four of the key insights revealed in this report ...
Thanks to pandemic-related work-from-home (WFH) and digital/mobile customer experience initiatives, employees and users are more distributed than ever. At the same time, organizations everywhere are adopting a cloud-first or cloud-smart architecture, distributing their business applications across private and public cloud infrastructures. Private data centers continue to be consolidated, while more and more branch offices are connecting to data centers and the public cloud simultaneously. Maintaining application performance for distributed users in this increasingly hybrid environment is a significant challenge for IT teams ...
In a world where constant change is becoming routine, Gartner said that infrastructure and operations (I&O) leaders must shift their traditional focus from efficiency to one of adaptive resilience. I&O leaders must re-imagine how they manage their talent, their platforms and operations, if they want to dynamically and quickly exploit new opportunities ...
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 ...
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" ...
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 ...
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 ...