If you're storing an image Blob in App Engine, should you put it in the Blobstore or Google Cloud Storage?

一曲冷凌霜 提交于 2019-12-19 09:19:07

问题


Google Cloud Storage seems more cost effective than the App Engine Blobstore.

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

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 seems more cost-effective than Blobstore. Which one would be better for storing large images?


回答1:


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.

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.




回答2:


Well, As of Dec 19 2014 It looks like GCS is the way to go. stated on https://cloud.google.com/appengine/docs/java/storage#alternative_storage_solutions

Google Cloud Storage is recommended over using the Blobstore API.




回答3:


I try to give a different answer. I would suggest Picasa as the image storage in common situation.

I ran into the same question when Google stopped to serve Google Storage for free. But then I noticed that Picasa is free for pictures smaller than 2048x2048 when your Google plus account is enabled. And it's still more cost-effective for paid-storage.

So if you are going to store small pictures like profile pictures, I would suggest App Engine Blobstore. If you are dealing with some more photos and pictures, take a look at Picasa.




回答4:


Note that with the latest release, there's now an API for accessing Cloud Storage from App Engine.



来源:https://stackoverflow.com/questions/7753840/if-youre-storing-an-image-blob-in-app-engine-should-you-put-it-in-the-blobstor

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!