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:
<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>
<cfset g3 = new g3("itsnotthiseasyinphp","orruby")>
<cfset buckets = g3.getBuckets()>
<cfdump var="#buckets#" label="My buckets">
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?
Archived Comments
"Google Storage for Developers is currently available to a limited number of U.S. developers only" Bah!!!
Combined with your earlier Sneak post from today that could be pretty damn cool.
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.
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?
Just work in 9.0.1 I mean.
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.
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.
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.