Home / Blogs

Can a CDN Help Website and Application Performance?

Before we answer the question, “Can a CDN help your website and application performance,” let’s take a moment for a short CDN 101.

A CDN (content delivery or content distribution network) is a system of computers placed at different network nodes to provide the same content from the shortest distance possible. In other words, a CDN attempts to take pieces of content from your website and pass it to various nodes around the Internet.

How CDNs Work

When users in Los Angeles, for example, request your web page or application, they receive content both from your server and the nearest CDN node. The goal is to greatly reduce the latency that might be present if all traffic had to traverse the entire distance to your server. Another way of looking at it: having a CDN is like adding servers to your site.

When you present a web page, there’s overhead in servicing all the http requests. With a CDN, you can spread that overhead across the CDN nodes and your server. This inherently gives you more power in terms of connections, central processing unit (CPU), random access memory (RAM), etc. as you deliver content to the user.

CDNs and Website Performance: A Real Life Example

Recently Neustar was doing load testing for a a client’s new ecommerce site, and after running several tests, found that the home page was taking six seconds to load when it was not experiencing heavy traffic. During a load test we saw the following performance:

Concurrent UsersSeconds for Homepage to Load
1005.19
2009.47
30014.91
40027.86
50038.31
75073.90
100071.77


The high load times were unacceptable to the client, who was aiming to support at least 1,500 concurrent users. We dug into the full-page breakdown of the homepage to look for causes and learned the page was making http requests for 133 files of homepage content, a total of 1.2 MegaBytes. Some easy wins would be to combine the nine cascading style sheets (CSS) files and the 18 Javascript files into just one file.

The client chose not to take that path, because we also saw that the time to 1st Packet was high, meaning that their server was being overrun with request for the content. Instead, the client chose to implement a CDN.

The next load test, after implementing a CDN, provided the following results:

Concurrent UsersSeconds for Homepage to Load
1002.34
2002.43
3003.23
4004.49
5008.55
75015.95
100024.83
125031.23
150031.32


As you can clearly see, this single change reduced page load times by half. In this case, much of the static content, such as GIF, JPG, PNG, and SWF files, were all moved to the CDN, alleviating a lot of the work the web servers were asked to do. The client was also able to improve performance further by distributing other content such as CSS and JS files to the CDN.

In Summary

Of all the performance tweaks you can make to a website, implementing a CDN is one of the most effective. The answer to our original question “Can a CDN help your website and application performance” is this: in many cases, yes, a CDN can help. While a CDN won’t solve every web performance problem, it can often boost performance to a significant degree and deliver a better experience for your customers.

By Steve Thurner, Professional Services Engineer at NeuStar

Filed Under

Comments

Comment Title:

  Notify me of follow-up comments

We encourage you to post comments and engage in discussions that advance this post through relevant opinion, anecdotes, links and data. If you see a comment that you believe is irrelevant or inappropriate, you can report it using the link at the end of each comment. Views expressed in the comments do not represent those of CircleID. For more information on our comment policy, see Codes of Conduct.

CircleID Newsletter The Weekly Wrap

More and more professionals are choosing to publish critical posts on CircleID from all corners of the Internet industry. If you find it hard to keep up daily, consider subscribing to our weekly digest. We will provide you a convenient summary report once a week sent directly to your inbox. It's a quick and easy read.

I make a point of reading CircleID. There is no getting around the utility of knowing what thoughtful people are thinking and saying about our industry.

VINTON CERF
Co-designer of the TCP/IP Protocols & the Architecture of the Internet

Related

Topics

New TLDs

Sponsored byRadix

Brand Protection

Sponsored byCSC

Cybersecurity

Sponsored byVerisign

DNS

Sponsored byDNIB.com

Domain Names

Sponsored byVerisign

Threat Intelligence

Sponsored byWhoisXML API

IPv4 Markets

Sponsored byIPv4.Global