CDN 上的静态 Web 资产和托管别名的最佳数量
内容交付网络的主机别名(即 storage-1.host
、storage-2.host
等)的最佳数量是多少?我使用的是 Amazon Cloud Front,最多可以设置 10 条不同的 CNAME 记录。我的理解是,浏览器将启动到任何给定主机的两个并行连接,但我想知道浏览器是否会连接到无限数量的不同主机,或者是否设置了限制?我浏览了一些大型服务(例如 YouTube 和 Flickr),发现它们倾向于使用 4 种不同的主机别名。这是最佳数字吗?谢谢!
What is the optimal number of host aliases (i.e. storage-1.host
, storage-2.host
, etc.) to have with a content delivery network? I'm using Amazon Cloud Front and can set up to 10 different CNAME records. My understanding is that browsers will initiate two parallel connections to any given host, but I'm wondering if browsers will connect to an unlimited number of different hosts or is a limit set in place? I have taken a look through a few large services (such as YouTube and Flickr) and noticed that they tend to use 4 different host aliases. Is this the optimal number? Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
听起来理想的数字是 10。 :)
您拥有的主机越多越好 - 整个想法是您希望尽可能多地并行运行下载,并且更多主机 = 更多并行下载。
It sounds like the ideal number is 10, then. :)
The more hosts you have, the better - the whole idea is that you want as many downloads running in parallel as possible, and more hosts = more parallel downloads.