Blogger :
Ajaxian Blog
All posts :
All posts by Ajaxian Blog
Category :
SOA
Blogged date : 2006 Apr 24
There’s a new open-source project to access Amazon’s S3 storage service from Javascript. Creator Les Orchard explains:
There’s a SHA1 implementation for JavaScript.
The authentication scheme for Amazon’s S3 requires SHA1.
JavaScript-based apps can be served up from the S3 domain as files stored via S3.
All of this adds up to JavaScript apps hosted on S3 with AJAX-based read/write access to S3 itself.
Also: Imagine GreaseMonkey scripts using S3 as a universal configuration pool and long-term data store. (The configuration pool idea, by the way, came from Dave Winer.)
We’ve talked in the past about offline data storage, whether via Flash or future browser enhancements. Holding data in the user’s own third-party store is a third option for storage, an alternative to conventional online storage as well as offline storage that allows the user to control their own data without having to maintain it locally.
The service is ideal for Client-SOA apps, where the browser runs the entire UI and makes REST or RPC calls to the server, which responds with raw data. The app itself could presumably load from another URL, your local hard drive, a bookmarklet, or a plugin/extension/GM script (with varying levels of security risk involved).
There’s already a nice demo app: S3 Ajax Wiki. In this case, the app loads from S3 itself, which is also possible in certain situations:
Of course, since my demo wiki is sitting in an S3 bucket with a public-write ACL, everythingâ??s open to vandalism and subversion (of the bad variety)- documents and application both. S3Ajax does allow authentication through your S3 credentials, though, so a private group with restrictive S3 ACLs could use this wiki successfully.
Documentation on the S3 library is currently limited, but you can read more about the S3 Ajax Wiki here.