如果您在 App Engine 中存储图像 Blob,您应该将其放在 Blobstore 中还是 Google Cloud Storage 中? [英] If you're storing an image Blob in App Engine, should you put it in the Blobstore or Google Cloud Storage?

查看:20
本文介绍了如果您在 App Engine 中存储图像 Blob,您应该将其放在 Blobstore 中还是 Google Cloud Storage 中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Google Cloud Storage 似乎比 App Engine Blobstore.

目前,我将用户上传的图像文件作为 Blob 类型字段存储在 Datastore(顺便说一下,App Engine Java API)中.

At the moment I am storing user-uploaded image files as Blob type fields in the Datastore (App Engine Java API, by the way).

但我正在考虑是否切换到 BlobstoreGoogle 云存储 以允许大于 1MB 的图像大小.

But I'm debating whether to switch to either the Blobstore or Google Cloud Storage to permit image sizes greater than 1MB.

Google Cloud Storage 似乎比 Blobstore 更具成本效益.哪个更适合存储大图像?

Google Cloud Storage seems more cost-effective than Blobstore. Which one would be better for storing large images?

推荐答案

Blobstore 与 App Engine 紧密集成,而 Cloud Storage 是独立提供的.否则,它们看起来就像是同一个基本服务的不同接口.

The Blobstore is tightly integrated with App Engine, while Cloud Storage is offered stand-alone. Otherwise, they look like different interfaces to the same basic service.

我看不出有什么好的技术理由让它们定价不同;也许这是一种营销方式.

I don't see any good technical reason for them to be priced differently; perhaps it's a marketing thing.

Blobstore 具有更成熟的 API,并且可以执行一些简洁的操作,例如即时制作缩略图,而不会产生额外的存储空间.Cloud Storage API 是实验性且快速变化的.它们都非常有能力存储大图像.要进行选择,您需要确定 Blobstore 更强大的 API 是否能证明名义上更高的成本是合理的.

The Blobstore has a more mature API and does some neat stuff like making thumbnails on the fly without incurring extra storage. The Cloud Storage API is experimental and rapidly changing. They're both perfectly capable of storing large images. To choose, you'll need to decide if the Blobstore's more rubust API justifies the nominally higher cost.

这篇关于如果您在 App Engine 中存储图像 Blob,您应该将其放在 Blobstore 中还是 Google Cloud Storage 中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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