为什么要使用CDN(内容交付网络)? [英] Why use a CDN (Content Delivery Network‎)?

查看:336
本文介绍了为什么要使用CDN(内容交付网络)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我注意到大多数在线教程都使用CDN,而不仅仅是在本地添加新文件(无论是CSS还是jQuery),并仅以<link href="~/Content/css/footer.css" rel="stylesheet" />的方式引用它.我读过有关它的内容,但对于为什么要使用CDN仍然没有多大意义.除了更好的缓存之外,为什么还要使用CDN而不是在本地对文件进行编码并仅引用它?

I noticed that most of the tutorials online make use of a CDN instead of just adding a new file (be it CSS or jQuery) locally and just referencing it in the manner of <link href="~/Content/css/footer.css" rel="stylesheet" />. I read about it but it still does not make a lot of sense as to why you would use a CDN. Besides for better caching, why would you make use of a CDN instead of coding your file locally and just referencing it?

推荐答案

它只是减少服务器负载

因此,战略性部署可以减少互连,骨干网以及公共和私有对等服务器上的服务器负载,从而释放整体容量并降低交付成本.从本质上讲,内容分散在多台服务器上,而不是将它们卸载到一台大型服务器上.

As a result, the strategic placement can decrease the server load on interconnects, backbones and public and private peers, which frees up overall capacity and decreases delivery costs. Essentially, the content is spread out across several servers, as opposed to offloading them onto one large server.

加快内容交付速度

由于CDN将服务器放置在尽可能靠近一组用户的位置,因此,由于距离较短,延迟和数据包丢失也得以最小化.从理论上讲,内容离用户越近,交付速度就越快.因此,在流式传输时,用户将体验到更少的抖动,更少的网络尖峰和整体上改善的流式传输质量.由于可靠性,运营商可以提供高质量的内容,高水平的服务,较低的网络服务器负载,从而降低成本.

Since CDNs place servers as close to a group of users as possible, latency and packet loss are minimized due to a shorter distance traveled. Theoretically, the closer the content is to the user, the faster the delivery. Therefore, users will experience less jitter when streaming, fewer network spikes, and an overall improved streaming quality. Due to the reliability, operators can deliver high quality content with a high level of service, low network server loads, and thus, lower costs.

此外,许多CDN提供商都提供TCP加速技术,该技术可以提高性能,从而改善用户体验.由于CDN减少了等待时间,因此加速与本来就不错的网络配合使用会产生爆炸性的内容.

Additionally, many CDN providers offer TCP acceleration technology which boosts performance, thus improving user experience. Since CDNs decrease latency, the acceleration working in conjunction with an already high-performing network results in explosive content.

100%可用性

由于资产在许多区域中的分布,CDN具有自动服务器可用性检测机制以及即时用户重定向功能.结果,即使在大规模停电,硬件问题或网络问题期间,CDN网站也能达到100%的可用性.

Due to the distribution of assets across many regions, CDNs have automatic server availability sensing mechanisms with instant user redirection. As a result, CDN websites experience 100 percent availability, even during massive power outages, hardware issues or network problems.

并发用户数增加

从战略上将服务器放置在CDN中会导致较高的网络主干网容量,这意味着在给定时间访问网络的用户数量将大大增加.例如,如果有一个100 GB/s的网络主干,容量为2 tb/s,则只能交付100 GB/s.但是,有了CDN,将在10个战略位置提供10台服务器,然后它们可以提供10 x 100 GB/s的总容量.

Strategically placing the servers in a CDN can result in high network backbone capacity, which equates to a significant increase in the number of users accessing the network at a given time. For example, where there is a 100 GB/s network backbone with 2 tb/s capacity, only 100 GB/s can be delivered. However, with a CDN, 10 servers will be available at 10 strategic locations and can then provide a total capacity of 10 x 100 GB/s.

资产交付控制

CDN技术的另一个有益特性是,授予了对资产交付和网络负载的更多控制权.运营商可以提供实时负载统计信息,优化每个客户的容量,显示活动区域,指示哪些资产受欢迎以及向其客户报告查看详细信息.这些详细信息非常重要,因为一旦将服务器源添加到CDN,使用日志就会被停用.

Another beneficial feature of CDN technology is that more control of asset delivery and network load is awarded. Operators have the ability to deliver real-time load statistics, optimize capacity per customer, display active regions, indicate which assets are popular, and report viewing details to their customers. These details are extremely important, since usage logs are deactivated once the server source has been added to the CDN.

更多参考信息:链接

这篇关于为什么要使用CDN(内容交付网络)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆