Google Storage for Devs - how compatible with S3?

This post is more than 2 years old.

Earlier this week I got access to Google Storage for Developers, Google's answer to Amazon S3. I was looking over the developer's guide when I came across this little nugget:

Google Storage is interoperable with a large number of cloud storage tools and libraries that work with services such as Amazon Simple Storage Service (Amazon S3) and Eucalyptus Systems, Inc. To use these tools and libraries, all you have to do is change the request endpoint (URI) that the tool or library uses so it points to the Google Storage URI, and configure the tool or library to use your Google Storage developer keys.

Oh yeah? I've been using Joe Danziger's Amazon S3 REST Wrapper from RIAForge to provide S3 support to the Adobe Groups site. I took that CFC and did a quick replace on the Amazon URL with the Google URL and.... it worked. Nice! Here is a quick template I created:

<cfset g3 = new g3("itsnotthiseasyinphp","orruby")> <cfset buckets = g3.getBuckets()> <cfdump var="#buckets#" label="My buckets">

<p/>

<cfset files = g3.getBucket(buckets[1].name)> <cfdump var="#files#" label="Files in bucket 1">

<p>

<cfset link = g3.getObject(buckets[1].name, files[1].key)> <cfoutput><img src="#link#"></cfoutput>

And the result:

Pretty nice to see the service working so easily so far. I haven't yet dug enough to know how Google's service is better than S3 (if it is), but I do like that they provide a nice web based interface out of the box.

Anyone else planning to make use of Google Storage?

Raymond Camden's Picture

About Raymond Camden

Raymond is a senior developer evangelist for Adobe. He focuses on document services, JavaScript, and enterprise cat demos. If you like this article, please consider visiting my Amazon Wishlist or donating via PayPal to show your support. You can even buy me a coffee!

Lafayette, LA https://www.raymondcamden.com

Archived Comments

Comment 1 by Saul posted on 6/8/2010 at 9:33 PM

"Google Storage for Developers is currently available to a limited number of U.S. developers only" Bah!!!

Comment 2 by Sam Farmer posted on 6/8/2010 at 9:34 PM

Combined with your earlier Sneak post from today that could be pretty damn cool.

Comment 3 by Raymond Camden posted on 6/8/2010 at 9:40 PM

Yeah, in theory it would be trivial for Adobe to add. On the flip side - Google has a way of keeping stuff in beta for years. I'm not sure it makes sense for Adobe to spend cycles on this yet. Maybe for CF10.

Comment 4 by Sam Farmer posted on 6/8/2010 at 9:51 PM

Based on your sneak earlier and the code above where you use an s3 library written in CF shouldn't it just work if instead of providing an s3 URI you provide a Google one?

Comment 5 by Sam Farmer posted on 6/8/2010 at 9:53 PM

Just work in 9.0.1 I mean.

Comment 6 by Raymond Camden posted on 6/8/2010 at 9:55 PM

No - you do not provide a URL with this new feature, but rather just a s3 prefix. Much like vfs is used as a prefix as well.

Comment 7 by Rodion Bykov posted on 6/11/2010 at 4:57 PM

Amazon released what was missing for years - console to their S3 interface and also added many new services during last month. Definitely they feel pressure from Google's side, and it's working well for us developers.

Comment 8 by ac posted on 1/17/2011 at 3:55 AM

I've just made available my Google Storage CFC at http://code.google.com/p/go...

It's still at a very early stage but has most of the basic functionality.

Google Storage is also lacking a few key features but i'm sure they'll appear with time.