{"id":181,"date":"2015-03-25T21:05:54","date_gmt":"2015-03-25T21:05:54","guid":{"rendered":"http:\/\/www.ahosting.net\/blog\/?p=181"},"modified":"2015-03-25T21:05:54","modified_gmt":"2015-03-25T21:05:54","slug":"what-is-a-content-delivery-network-exactly","status":"publish","type":"post","link":"https:\/\/www.ahosting.net\/blog\/what-is-a-content-delivery-network-exactly\/","title":{"rendered":"What IS A Content Delivery Network, Exactly?"},"content":{"rendered":"<p>I\u2019m sure you\u2019ve heard on at least one occasion that content delivery networks are awesome. They significantly improve the speed at which your website can deliver content. Not only does that make for a better user experience, there\u2019s also mounting evidence that faster-loading pages tend to rank higher than those that load slowly (<a href=\"http:\/\/moz.com\/blog\/how-website-speed-actually-impacts-search-ranking\">though not, perhaps, for the reasons that you might think<\/a>).<\/p>\n<p>Sounds like a pretty good deal across the board, no?<!--more--><\/p>\n<p>It certainly does. There\u2019s just one problem, though. While the above explanation certainly does make a compelling case as to <b>why <\/b>you should use a content delivery network, it doesn\u2019t really offer much in terms of explaining <b>how a CDN actually works<\/b>.<\/p>\n<p>That\u2019s what we\u2019re here to talk about today. How does a content delivery network function? More importantly, how can you tell when you should use one for your own site?<\/p>\n<p>Let\u2019s say you\u2019re running a website from a server in New York City. The browser of every single person who connects to your website first needs to make a DNS request to discover the website\u2019s IP address. Once it has that it can initiate a connection to your site. Then the data needs to be sent and received.<\/p>\n<p>That last part is where lag generally tends to occur. In order to load each \u2018piece\u2019 of data on your site, the host and the client need to communicate. Even a slight delay in the communication could significantly increase load times.<\/p>\n<p>For anyone in the tri-state area, this is pretty much a non-issue. They should be able to request, receive, and load data from the website with relative speed. But what about visitors based out of other locations?<\/p>\n<p>What about people from Austin? Or Los Angeles? Or Canada?<\/p>\n<p>That\u2019s where content delivery networks come in &#8211; they essentially function as digital middlemen for your website, delivering content to visitors geographically removed from your location. They do this through the use of edge servers &#8211; proxy caches that contain a copy of your website. When an edge server receives a request from a browser, it goes through the following process:<\/p>\n<ul>\n<li>First, it checks its cache to see if it contains the required content. If it has the content, then it sends it directly to the requesting browser without having to ask the origin server on which your site lives.<\/li>\n<li>If the cache doesn\u2019t &#8211; or it has expired &#8211; then the CDN sends a request to the origin server to retrieve the necessary information.<\/li>\n<li>The information is transmitted from the edge server to the browser, and the process repeats as many times as necessary.<\/li>\n<\/ul>\n<p>For websites with a geographically-diverse clientele, content delivery networks are all but necessary in order to ensure that everyone receives the best experience possible. By positioning edge servers in geographically-strategic locations, website owners can ensure that their visitors load their website just about as fast as they would if they were connecting from next door. That\u2019s the value of a CDN &#8211; and why you should use one.<\/p>\n<p>Now, with that said, they aren\u2019t necessarily the right choice for everyone. If your website is generally only frequented by visitors within a limited geographic range &#8211; for example, if you\u2019re a local restaurant &#8211; then you can probably get away without using one. For everyone else, though?<\/p>\n<p>The world\u2019s getting more global with each passing day &#8211; and CDNs are among the best ways to deal with that.<\/p>\n<p>Image: Flickr\/<a href=\"https:\/\/www.flickr.com\/photos\/marcobellucci\/3534516458\/sizes\/z\/\">Marco Belucci<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I\u2019m sure you\u2019ve heard on at least one occasion that content delivery networks are awesome. They significantly improve the speed at which your website can deliver content. Not only does that make for a better user experience, there\u2019s also mounting evidence that faster-loading pages tend to rank higher than those that load slowly (though not, [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":182,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[2],"tags":[],"class_list":["post-181","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-web-hosting"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.ahosting.net\/blog\/wp-json\/wp\/v2\/posts\/181","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ahosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ahosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ahosting.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ahosting.net\/blog\/wp-json\/wp\/v2\/comments?post=181"}],"version-history":[{"count":1,"href":"https:\/\/www.ahosting.net\/blog\/wp-json\/wp\/v2\/posts\/181\/revisions"}],"predecessor-version":[{"id":183,"href":"https:\/\/www.ahosting.net\/blog\/wp-json\/wp\/v2\/posts\/181\/revisions\/183"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ahosting.net\/blog\/wp-json\/wp\/v2\/media\/182"}],"wp:attachment":[{"href":"https:\/\/www.ahosting.net\/blog\/wp-json\/wp\/v2\/media?parent=181"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ahosting.net\/blog\/wp-json\/wp\/v2\/categories?post=181"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ahosting.net\/blog\/wp-json\/wp\/v2\/tags?post=181"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}