flexera-public / right_aws

RightScale Amazon Web Services Ruby Gems
MIT License
451 stars 175 forks source link

= RightScale Amazon Web Services Ruby Gems

Published by RightScale, Inc. under the MIT License. For information about RightScale, see http://www.rightscale.com

== THE GEM IS NO LONGER MAINTAINED

We recommend you use https://github.com/rightscale/right_aws_api instead.

== DESCRIPTION:

The RightScale AWS gems have been designed to provide a robust, fast, and secure interface to Amazon EC2, EBS, S3, SQS, SDB, and CloudFront. These gems have been used in production by RightScale since late 2006 and are being maintained to track enhancements made by Amazon. The RightScale AWS gems comprise:

== FEATURES:

== THREADING:

All RightScale AWS interfaces offer two threading options:

  1. Use a single persistent HTTP connection per process.
  2. Use a persistent HTTP connection per Ruby thread.

Either way, it doesn't matter how many (for example) RightAws::S3 objects you create, they all use the same per-program or per-thread connection. The purpose of sharing the connection is to keep a single persistent HTTP connection open to avoid paying connection overhead on every request. However, if you have multiple concurrent threads, you may want or need an HTTP connection per thread to enable concurrent requests to AWS. The way this plays out in practice is:

  1. If you have a non-multithreaded Ruby program, use the non-multithreaded setting.
  2. If you have a multi-threaded Ruby program, use the multithreaded setting to enable concurrent requests to S3 (or SQS, or SDB, or EC2).
  3. For running under Mongrel/Rails, use the non-multithreaded setting even though mongrel is multithreaded. This is because only one Rails handler is invoked at time (i.e. it acts like a single-threaded program)

Note that due to limitations in the I/O of the Ruby interpreter you may not get the degree of parallelism you may expect with the multi-threaded setting.

== GETTING STARTED:

== KNOWN ISSUES:

== REQUIREMENTS:

RightAws requires REXML and the right_http_connection gem. If libxml and its Ruby bindings (distributed in the libxml-ruby gem) are present, RightAws can be configured to use them: RightAws::RightAWSParser.xml_lib = 'libxml' Any error with the libxml installation will result in RightAws failing-safe to REXML parsing.

== INSTALL:

sudo gem install right_aws

== LICENSE:

Copyright (c) 2007-2013 RightScale, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.