AmazonS3 & Rails

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    4 Favorites & 1 Group

    AmazonS3 & Rails - Presentation Transcript

    1. AmazonS3 mstannard@gmail.com
    2. What is it? S3 = Simple Storage System \"Amazon S3 is storage for the Internet. It is designed to make web-scale computing easier for developers.\"
    3. Features Write, read, delete from 1B to 5GB REST and SOAP interfaces HTTP & BitTorrent protocols supported Authentication built-in US & European storage
    4. Why use it? CDN Fast Scalable Simple Inexpensive Reliable 99.99%
    5. Basic Concepts Object - data + metadata (custom + some standard) Bucket - the storage container (max 100 / dev) - must be unique across whole S3 service Key - unique identifier of an object in a bucket
    6. Using S3 with Rails Signup at Amazon Install AWS::S3 gem Install attachment_fu plugin
    7. config/amazons3.yml development: bucket_name: reading_eggs_development access_key_id: my_access_key secret_access_key: my_secret_key test: bucket_name: reading_eggs_test access_key_id: my_access_key secret_access_key: my_secret_key prod: etc.....
    8. attachment_fu before: has_attachment :content_type => 'application/x-shockwave-flash', :storage => :file_system, :path_prefix => 'path/to/files/', :max_size => 10.megabytes
    9. attachment_fu after: has_attachment :content_type => 'application/x-shockwave-flash', :storage => :s3, :max_size => 10.megabytes
    10. attachment_fu access: >> p = PartFile.find(:first) => #<PartFile:0x23a0eb0 @attributes={\"content_type\"=>\"application/x-shockwave-flash\", \"size\"=>\"4434939\", \"id\"=>\"315\", \"filename\"=>\"I_and_a.swf\"} >> p.public_filename => \"http://s3.amazonaws.com/reading_eggs_dev/part_files/315/ I_and_a.swf\" >> p.full_filename => \"part_files/315/I_and_a.swf\" >> p.bucket_name => \"reading_eggs_dev\"
    11. Pricing Storage $0.15 per GB-Month of storage used Data Transfer $0.10 per GB - all data transfer in $0.18 per GB - first 10 TB / month data transfer out $0.16 per GB - next 40 TB / month data transfer out $0.13 per GB - data transfer out / month over 50 TB Requests $0.01 per 1,000 PUT or LIST requests $0.01 per 10,000 GET and all other requests* * No charge for delete requests
    12. Sample Costings Data Storage Costs 1GB/M $0.15 1 GB Storage = $0.15 Bandwidth Costs 5000 Users 200 MB / User / Month 0.2 GB * 5000 = 1000GB * $0.18 = $180 Request Costs Request = 200/User/Month = 5000 * 200 = 1M get requests 1000000/10000 = 100 * $0.01 = $1 Total Cost US$181.15
    13. Resources Amazon S3 : http://aws.amazon.com/s3 AWS::S3 gem : http://amazon.rubyforge.org/ s3fox : http://www.rjonna.com/ext/s3fox.php s3 calc : http://calculator.s3.amazonaws.com

    + _martinS__martinS_, 3 years ago

    custom

    1927 views, 4 favs, 0 embeds more stats

    A quick overview of AmazonS3 and how you can use it more

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 1927
      • 1927 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 4
    • Downloads 50
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories

    Groups / Events