Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which gem is better for working with AWS: aws-sdk or fog?

I am just about to start working with AWS (s3 and ec2) and I was wondering which gem is better: aws-sdk or fog?

like image 944
Itay k Avatar asked Jan 04 '12 15:01

Itay k


People also ask

What is AWS SDK Ruby?

The AWS SDK for Ruby helps you to get started building applications using Amazon Web Services infrastructure services, including Amazon S3, Amazon EC2, Amazon DynamoDB, and more.

Which method of interacting with AWS would allow you to programmatically create resources using Ruby?

Aws::S3::Resource—Represents the interface to Amazon S3 for the Ruby SDK and provides methods for creating and enumerating buckets. The S3 class provides the #buckets instance method for accessing existing buckets or creating new ones.

Does AWS use Ruby?

Tools. This SDK provides Ruby classes for many AWS services including Amazon S3, Amazon EC2, DynamoDB, and more. A Ruby on Rails plugin that integrates AWS services with your application using the latest version of AWS SDK for Ruby.

What is storage fog?

Fog computing is a decentralized computing infrastructure in which data, compute, storage and applications are located somewhere between the data source and the cloud. Like edge computing, fog computing brings the advantages and power of the cloud closer to where data is created and acted upon.


2 Answers

I would say AWS-SDK. I have not used fog, but have used the AWS gem, and switched. I have found that the official support and bug fixing from the ruby person at Amazon has been pretty good. Also the code in AWS-SDK is nice and clean, and I like the approach. When AWS announces a new feature, the AWS-SDK client seems to get updated within days to support it.

I looked at fog, and immediately decided against it: a) Too many gem dependencies. b) Lowest common denominator, and c) Internal complexity, needed because it supports many different protocols.

like image 84
Tom Andersen Avatar answered Sep 28 '22 00:09

Tom Andersen


I would say fog.

All I know is that it's the one I've been using and it's fine. It supports almost all of the AWS services except for sns I think. It might be easier to test as well, since it has mock services.

It's the one recommanded for working with carrierwave also.

Fog also seems to be well maintained.

But on the other hand, aws-sdk is done by amazon, and might become the standard.

like image 23
Robin Avatar answered Sep 27 '22 23:09

Robin