​Amazon Adds S3 Select Support to the AWS SDK for Ruby

Amazon this week announced that it has added support for S3 Select in the AWS SDK for Ruby. Amazon S3 Select allows developers to retrieve subsets of data from objects stored in S3 using simple SQL expressions. 

The AWS SDK for Ruby now allows developers to use the S3 #select_object_content API, which streams responses as a series of events, boosting performance. To support this, Amazon added Asynchronous event processing to the Ruby SDK. Developers can alternatively choose to wait for a full response before retrieving all events.

Additionally, Amazon has added stubbed event stream responses. This allows developers to mock an event stream response with events for the purpose of implementing Rspec tests. 

To make use of this new functionality, developers need to use version 3 of the AWS SDK for Ruby. Last year, Amazon modularized this SDK and made it available with over 100 gems specific to AWS services, including S3.

Be sure to read the next Storage article: Amazon Explains, Changes its S3 Path Deprecation Plan