Search |
||
S3MapPosted by tomwhite on August 13, 2006 at 12:30 PM PDT
In case you haven't heard of it, Amazon S3 is a web service for storing data. The two great things about it are that it's simple (look at its nice REST API), and it's cheap (with a pay-as-you-go charging model). This latter point explains the growing number of startups that are using it to launch new business ventures: no data silos to maintain, and pay by the gigabyte. My favourite innovative service to use Amazon S3 uses AJAX to great effect to implement a wiki that stores its content on S3. Read all about it. If you think about it, this is an interactive service that resides entirely on S3, so it will scale and scale - there's no need for an application server. I think Content Management Systems could take this approach too.
It struck me that you could treat S3 as a big hashtable, so I tried writing an implementation of
This code prints:
Notice that keys are strings, but the objects in the map can be of any type, as long as they are Also, the map needs the connection parameters for an S3 account, and a bucket name. One bucket corresponds to one map. The map is persistent, so I can run the code above again, but without putting anything into the map, and the values put in previously will be retrieved and printed out exactly as before.
Writing an implementation of So, what is it useful for? Well, I haven't actually had a use for it yet, but S3Map is really a non-transactional persistent datastore, so it could be used in many scenarios, from applets (if the applet is hosted on S3 too), to desktop apps (to share user data between machines?), to server-side apps. If you're intrigued, you can try it out yourself by signing up for an Amazon S3 account, and downloading S3Map (it's hosted on S3 of course). »
Related Topics >>
Distributed Comments
Comments are listed in date ascending order (oldest first)
|
||
|