We have our application hosted on Google app engine for Java and we have a requirement where we want to store the blood donor appreciation certificates (html
files) somewhere.
So, we can use either Google Blobstore or Google Cloud Storage. I know both of these solutions are feasible to do using gae for Java
However, the problem for us is to decide which one to use. What are the pros and cons of these two approaches?
We are a non profit and cannot pay a lot.
The Blobstore API allows your application to serve data objects, called blobs, that are much larger than the size allowed for objects in the Datastore service. Blobs are useful for serving large files, such as video or image files, and for allowing users to upload large data files.
Cloud Storage is a service for storing your objects in Google Cloud. An object is an immutable piece of data consisting of a file of any format. You store objects in containers called buckets.
An object in Google Cloud Storage. A Blob object includes the BlobId instance, the set of properties inherited from the BlobInfo class and the Storage instance. The class provides methods to perform operations on the object. Reading a property value does not issue any RPC calls.
If you're starting a new project, I would go with Cloud Storage.
It seems that Google is pushing their Cloud Storage platform harder than their blobstore platform. For example, currently programmatically writing files to the blobstore is deprecated but is supported by Cloud Storage. I can't read the future, but I would bet that Google will be deprecating more and more of the blobstore API in favor of the Cloud Storage API, which will lead to headaches down the road.
UPDATE: Programatically writing to the blobstore is no longer supported, but it is fully supported on app engine. Further, you can use the blobstore API and still use Cloud Storage as a backend. At this point, it's clear that Cloud Storage will outlive the blobstore.
UPDATE 2017: Google's official recommendation is to now Cloud Storage rather than the blobstore. Called this one 4 years ahead.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With