【问题标题】:Image hosting on Google App Engine a good idea?在 Google App Engine 上托管图片是个好主意?
【发布时间】:2014-03-13 11:37:51
【问题描述】:

我计划通过 Google 应用引擎 blobstore API 托管图像。 它在性能和便宜方面看起来非常有前途。 我还可以映射到我的自定义域。

但我想知道的事情很少。

1.) 对于我的应用程序的 SEO,通过 blobstore 提供图像是一个好主意吗? 由于我所有的图像都将变为动态图像,谷歌是否使用我的自定义域 url 索引动态图像。

2.) 图像服务会消耗传出带宽,这似乎太便宜了,但还有其他替代方案可以减少传出带宽成本吗?

3.) 请建议是否有任何其他替代方案比 GAE 更好并且可以满足我的要求。

【问题讨论】:

    标签: java google-app-engine cdn blobstore google-cdn


    【解决方案1】:

    1.)Is serving images via blobstore a good idea in regards to SEO of my application? As all my images are going to dynamic, does google index dynamic images with my custom domain url.

    不要将图像放入数据库中。而是上传图像并将链接放入数据库中。 Instagram 将 s3 用于其图像,因此您不必担心性能。如果您将图像存储为文件并提供链接,搜索引擎可以很好地索引它们。只需确保为图像使用相关名称即可。例如,this image 使用 http://example.com/data/image-store/owl-be-your-valentine

    3.)And please suggest if there is any other alternative that is better that GAE and can serve my requirements.

    我没有用过 GAE。如果您要求替代方案。我建议你aws s3

    2.)And image serving is going to cost outgoing bandwidth which seems too be cheap but still is there any other alternative to cut off outgoing bandwidth cost?

    s3 很便宜,很便宜。 http://www.codinghorror.com/blog/2007/03/using-amazon-s3-as-an-image-hosting-service.html

    【讨论】:

    • AWS S3 可能是一种替代方案,但是当我通过应用引擎 blobstore api 和 amazon S3 提供服务时,您是否发现性能差异。两者的价格都与我相当。
    • 我也怀疑索引部分。我在应用引擎上的图像仍未编入索引。我确实遵循了有意义的名称策略。对此有何看法?
    【解决方案2】:

    当使用 Java 通过 GAE 托管图像时,您应该使用 getServingUrl。你向它传递一个 blob 键,以及可选的调整大小和裁剪选项,它会返回一个 URL。

    【讨论】:

      【解决方案3】:

      这取决于日常使用情况。

      Google App Engine 有每日免费配额(1GB 传出流量)。 如果您每天的流量在 1-5GB 左右,Google App Engine 是最便宜的方式。

      【讨论】:

      • SEO 怎么样?谷歌索引动态图像是否通过 blobstore 提供?
      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-10-19
      • 2020-09-05
      • 1970-01-01
      • 2021-02-25
      • 2012-09-05
      相关资源
      最近更新 更多