AWS
S3

Introduction

Amazon S3 is a secure, durable and highly-scalable objects storage built to retrieve and store data from anywhere or together with other AWS services.

Amazon S3 characteristics

  • Durable: It provide durable infrastructure to store important data and it is designed to deliver 99.999999% durability.
  • Integrated: The data is stored redundantly across multiple facilities and across multiple device in each facility.
  • Low Cost: It is low cost with the pay-as-you-go model. We just pay for our usage.
  • Available: It is highly available designed for 99.99% availability of objects over a given year backed by SLA (Service Level Agreement) so that we can rely on it when we need it. It allows us to optimize the data across multiple regions, so that we can place the data inside s3 with specific regions.
  • Security: Amazon S3 provides comprehensive security and compliance capabilities to handle through data transfer over SSL (Secure Socket Layer) and variety of different options for encryption of the data.
  • High-Performance: Amazon S3 support multi-part uploads, enable us to maximize utilization of our upstream bandwidth when uploading objects or content into S3 and also very high performance in download and support high volumes of content access for objects store inside S3.

Amazon S3 Concepts

  • Buckets: It is the containers for objects stored in S3. It organizes the amazon S3 namespace at the highest level. It also play a role in access control.
  • Objects: It is the fundamental entities stored in amazon S3. It consist of data and metadata. Data refer to entities stored in S3 bucket and metadata refer to a set of name-value pairs that describe the object. Object is uniquely identified within a bucket by a key (name) and version ID.
  • Regions: The geographical region where amazon S3 will store the buckets that we create.

Amazon S3 Accessibility

  • Access via APIs: Amazon S3 supports REST API with SOAP over HTTP and HTTPS. We can make REST API calls directly from our code.
  • Access via SDK: Amazon S3 provides pre-built and maintained SDK. It support with multiple programming languages such as:

  • Access via AWS CLI: It is another mechanism that amazon S3 provide.

    • Installation
      • Window: download and run the 64 bits or 32 bits window installer.
      • Mac and Linux: Requires python 2.6.5 or higher. Install using pip.
        pip install awscli
    • Usage
      • The quickest way to start
        aws configure
      • View contents of S3 bucket in a directory based listing
        aws s3 ls s3://mybucket
      • Perform recursive uploads and downloads of multiple files in a single folder-level command.
        aws cp myfolder s3://mybucket/myfolder --recursive
      • Synchronize the contents of a local folder with a copy in an S3 bucket
        aws s3 sync myfolder s3://mybucket/myfolder --exclude * .tmp
      • Create Buckets
        aws s3 mb s3://bucket-name
      • Removing Buckets
        aws s3 rb s3://bucket-name
      • By default the buckets must be empty for the operation to be succeed. To remove the no-empty buckets, we need to include the force option.
        aws s3 rb s3://bucket-name --force

Advantages and Disadvantages of AmazonS3

AmazonS3 also has its own advantages and disadvantages. Here are some of those.

  • Advantages
    • Storage is very inexpensive
    • Storage is flexible
    • Incredibly convenient
    • Very fast implementation
  • Disadvantages
    • S3 is basically UI-less. It's not User Friendly for beginner level of computer users.
    • Not all of every business might be comfortable with storing the data in the cloud. Example: Bank.
    • Transaction can be expensive. We pay for activity in addition to storage.
    • Must use Amazon Web Services API to do bulk uploads.
    • Two points of support. You have to support your software and the AWS back end.

References:
datastorageinc
slideshare