| 04.10.08 Amazon S3 Available From Perl By David A. Utter Some lines of Perl enable efficient reading and writing of data to the Amazon Simple Storage Service (S3) The continued growth and adoption of web services places information online in ways that enable developers to tap the data all over the globe. Amazon S3 gives developers and startups a cost-effective way to put their data online; it's up to the application developer to get it back. Abel Lin wrote about doing so through the use of some Perl tools. Lin's post at Perl.com presented ways to use Perl, REST, and Amazon's own S3 REST Module to make data sit up and beg.
"Without wading through the details, I tend think of buckets as folders, objects as files, and keys as filenames. The purpose of this abstraction is to create a unique HTTP namespace for every object," Lin wrote in translating the core concepts of Amazon S3. Getting to and from S3 starts with the valid S3 Access ID Key and Secret Access Key. Upon creating a connection to S3 with those credentials, Lin showed how to use the Data::Dumper module to view the contents being returned from the buckets on S3. Writing an object back is just as simple through HTTP Put, but beware of the potential for problems. S3 will happily overwrite an existing object with the same name with the later write request. Although it has been years since I have needed to use Perl, I'm always impressed to see clever ways to apply it to one's needs. Though it may not be the "cool" language anymore, I will be surprised to see something newer chew through a heap of raw data at the pace of properly written Perl.
|
|
|
Unsubscribe from PerlProNews. To unsubscribe from PerlProNews or any other iEntry publication, simply send an email request to: support@ientry.com |
0 comments:
Post a Comment