开发者

Choosing gems to work with AWS

Suppose a service written with RoR starts to use AWS S3 to store some data. What is the best library to use for working with AWS S3? Currently the main two alternatives for me a开发者_运维问答re:

  • RightScale AWS Ruby gems http://github.com/rightscale/right_aws
  • AWS::s3 http://amazon.rubyforge.org/

What are their main advantages and disadvantages? What if later service will need to use other AWS (like EC2)? What other gems do you use and why?

Thanks!


Both of the aws s3 gems you've mentioned work great, however if your assets are going to be big and require no post-processing it might be best if users upload directly to s3 with a flash app. This will save your server having to act as the middle man.

For EC2 you'll need to learn a lot about server provisioning. In the ruby community it seems to the two most popular solutions are:

Chef

  • http://wiki.opscode.com/display/chef/Getting+Started+with+EC2+Rails+Infrastructure
  • http://probablyinteractive.com/2009/3/29/Amazon%20EC2%20+%20Chef%20=%20Mmmmm.html
  • http://github.com/threedaymonk/chef-ec2

Sprinkle

  • http://redartisan.com/2008/5/27/sprinkle-intro
  • http://github.com/crafterm/sprinkle

There are also a bunch of third party applications for managing cloud infrastructure.

If you're going to be deploying a rails application I highly recommend you check out Heroku (http://heroku.com). It is, in one word, awesome.


Amazon recently released an AWS SDK for Ruby which allows you to interact with s3 as well.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜