在生产站点上对静态媒体应用 CDN 值得吗?
几乎我们所有的网站都设置了标准 mod_php
、apache2、LAMP 风格,静态媒体与动态 php 脚本位于同一域中。
我想知道实际切换到 CDN 是否有任何实际好处?如果我的服务器性能确实没有问题,那么这真的值得吗? (我们的服务器通常容纳 20-25 个酒店网站,有数百张图像)。
将其存储在 CDN 上不是有更多缺点吗,因为如果您要进行内容更新并将内容(假设我们使用的是 xml 而不是数据库)放在主服务器上,则必须将两者上传到cdn 并通过主站点的 css/标记链接到它?
Pretty much all of our sites are setup the standard mod_php
, apache2, LAMP style with the static media living on the same domain as the dynamic php scripts.
I'm wondering if there are any practical benefits to actually switching to a cdn? If I'm not really having issues with my server performance, is it really worth it? ( Our servers typically house 20-25 hotel sites, there are hundreds of images ).
Isn't there more disadvantages by storing it on a cdn, since if you are making content updates and have your content ( lets say we're using xml and not database ) on your primary server, you'd have to upload both on the cdn and link to it through your main site's css/markup?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
真正的问题是网站为远程用户呈现的速度有多快。 CDN 的主要好处之一是将大文件移动到靠近使用这些文件的人的地方。
有多种服务可以测量不同地理位置的页面性能,并让您了解更远程的用户是否存在性能问题。
The real question is how quickly the site is rendering for remote users. One of the main benefits of a CDN is moving large files close to the people that will consume them.
There are various services that will measure the performance of your pages from various geographical locations and give you an idea of whether your more remote users are having performance issues.