BlobStore vs Cloud Storage用于存储用户上传的图像 [英] BlobStore vs Cloud Storage for storing user uploaded images

查看:74
本文介绍了BlobStore vs Cloud Storage用于存储用户上传的图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是AppEngine的新手,并且正在构建一款接受来自Android设备的用户图片上传的应用。



我使用云存储构建了它,但后来我意识到我有问题上传大文件(可能是因为请求的时间限制?)

所以我想我应该使用Blobstore的上传URL来正确上传多个大文件。
Blobstore还具有即时的图片大小调整功能,非常棒。

事情是,Cloud Storage比Blobstore便宜。 p>

我应该在上传后将上传的文件从Blobstore移动到云存储吗?

有没有办法上传多个大文件到AppEngine,而无需通过Blobstore上传URL的方式?



我使用Go如果它很重要..

解决方案

最简单的答案可能是使用签名网址以允许用户直接上传到云端存储。这使您可以完全绕过App Engine进行上传,从而简化了网络使用,并使您能够充分利用所有Cloud Storage的上传基础架构。

I'm new to AppEngine and I'm building an app that accept user image uploads from Android devices.

I built it with Cloud Storage but then I realized that I have problems uploading large files (maybe because of request time limits?)

so I figured out I should use Blobstore's upload URL to properly upload multiple large files. Blobstore also has the on-the-fly image resizing feature which is very nice.

the thing is, Cloud Storage is cheaper than the Blobstore.

should I move the uploaded files from Blobstore to Cloud Storage after uploading ?

is there a way to upload multiple large files to AppEngine without going through the Blobstore upload URL way ?

I'm using Go if it matters..

解决方案

The simplest answer is probably to use a signed url to allow the user to upload directly to Cloud Storage. This lets you bypass App Engine entirely for your upload, which in turn simplifies the network usage and allows you to take full advantage of all of Cloud Storage's upload infrastructure.

这篇关于BlobStore vs Cloud Storage用于存储用户上传的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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