Google App Engine 是否使用 Google CDN 来分发静态资源?
我在网上找到了很多描述如何将 GAE 用作 CDN 的文章。但是,我在 Google 的 App Engine 文档中找不到任何有关 CDN 的提及。
有人可以向我指出一些官方文档/文章,其中提到在 GAE 之上开发的应用程序如何受益于 Google CDN 服务器吗?
提前致谢 :)
I find a lot of articles on the web describing how GAE can be used as a CDN. But, I could not locate any mention about CDN in Google's documentation of App Engine.
Can somebody please point me to some official document/article mentioning how applications developed on top of GAE benefit from Google CDN servers?
Thanks in advance :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
是的,GAE 使用 Google 的静态内容基础设施。
查看Google IO 2009 会议并阅读< a href="http://dl.google.com/io/2009/pres/W_1115_From_Spark_Plug_To_Drive_Train_Life_of_an_App_Engine_Request.pdf" rel="noreferrer">幻灯片 24-28。
静态内容由专门的基础设施处理。应用程序运行时不为他们服务。
Yes, GAE uses google's infrastructure for static content.
Have a look at this session at Google IO 2009 and read slides 24-28.
The static content is handled by specialized infrastructure. App runtimes don't serve them.
使用 App Engine 作为分布式文件托管实际上并不是该服务的“官方”用法,因此这就是为什么任何官方文档中都没有提及它。
App Engine 应用程序由多个 Google 生产数据中心提供服务,因此理论上您的应用程序处理请求的速度(或多或少)与 GMail 或 Docs 一样快。
如果您的应用程序所做的只是提供静态文件,那么您基本上就拥有了一个构建在 Google 服务器上的免费(某种程度上)CDN。
一些谷歌搜索找到了许多如何实现这一目标的示例。
Using App Engine as distributed file hosting isn't really an "official" usage of the service, so that's why it's never mentioned in any official documentation.
App Engine apps are served out of multiple Google production datacenters, so in theory your app will serve requests (more or less) as quickly as GMail or Docs.
If all your app does is serve static files, then you've basically got a free (to a point) CDN built on Google's servers.
Some googling finds many examples of how to accomplish this.