I am just about to start working with AWS (s3 and ec2) and I was wondering which gem is better: aws-sdk or fog?
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.
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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With