SlideShare ist ein Scribd-Unternehmen logo
1 von 13
Downloaden Sie, um offline zu lesen
AmazonS3

mstannard@gmail.com
What is it?

        S3 = Simple Storage System



 quot;Amazon S3 is storage for the Internet. It
 is designed to make web-scale computing
 easier for developers.quot;
Features
  Write, read, delete from 1B to 5GB

  REST and SOAP interfaces

  HTTP & BitTorrent protocols supported

  Authentication built-in

  US & European storage
Why use it?
  CDN

  Fast

  Scalable

  Simple

  Inexpensive

  Reliable 99.99%
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
Using S3 with Rails

  Signup at Amazon

  Install AWS::S3 gem

  Install attachment_fu plugin
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.....
attachment_fu

before:

has_attachment :content_type => 'application/x-shockwave-flash',
    :storage => :file_system,
    :path_prefix => 'path/to/files/',
    :max_size => 10.megabytes
attachment_fu

after:

has_attachment :content_type => 'application/x-shockwave-flash',
    :storage => :s3,
    :max_size => 10.megabytes
attachment_fu
access:

>> p = PartFile.find(:first)
=> #<PartFile:0x23a0eb0
@attributes={quot;content_typequot;=>quot;application/x-shockwave-flashquot;,
quot;sizequot;=>quot;4434939quot;, quot;idquot;=>quot;315quot;, quot;filenamequot;=>quot;I_and_a.swfquot;}
>> p.public_filename
=> quot;http://s3.amazonaws.com/reading_eggs_dev/part_files/315/
I_and_a.swfquot;
>> p.full_filename
=> quot;part_files/315/I_and_a.swfquot;
>> p.bucket_name
=> quot;reading_eggs_devquot;
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
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
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

Weitere ähnliche Inhalte

Was ist angesagt?

Introduction to WordPress Security
Introduction to WordPress SecurityIntroduction to WordPress Security
Introduction to WordPress SecurityShawn Hooper
 
Now That's What I Call WordPress Security 2010
Now That's What I Call WordPress Security 2010Now That's What I Call WordPress Security 2010
Now That's What I Call WordPress Security 2010Brad Williams
 
WordPress Security Presentation
WordPress Security PresentationWordPress Security Presentation
WordPress Security PresentationAndrew Paton
 
Easy Copy with AZ Copy
Easy Copy with AZ CopyEasy Copy with AZ Copy
Easy Copy with AZ CopyJohn Garland
 
WordPress Security - WordCamp Boston 2010
WordPress Security - WordCamp Boston 2010WordPress Security - WordCamp Boston 2010
WordPress Security - WordCamp Boston 2010Brad Williams
 
Threat Hunting Web Shells Using Splunk
Threat Hunting Web Shells Using SplunkThreat Hunting Web Shells Using Splunk
Threat Hunting Web Shells Using Splunkjamesmbower
 
ElasticSearch Meetup 30 - 10 - 2014
ElasticSearch Meetup 30 - 10 - 2014ElasticSearch Meetup 30 - 10 - 2014
ElasticSearch Meetup 30 - 10 - 2014Alberto Paro
 
WordPress Security WordCamp OC 2013
WordPress Security WordCamp OC 2013WordPress Security WordCamp OC 2013
WordPress Security WordCamp OC 2013Brad Williams
 
Wamp & LAMP - Installation and Configuration
Wamp & LAMP - Installation and ConfigurationWamp & LAMP - Installation and Configuration
Wamp & LAMP - Installation and ConfigurationChetan Soni
 
WordPress Security - WordCamp NYC 2009
WordPress Security - WordCamp NYC 2009WordPress Security - WordCamp NYC 2009
WordPress Security - WordCamp NYC 2009Brad Williams
 
Basics of web technologies
Basics of web technologiesBasics of web technologies
Basics of web technologiesBambootechies
 
Complete Wordpress Security By CHETAN SONI - Cyber Security Expert
Complete Wordpress Security By CHETAN SONI - Cyber Security ExpertComplete Wordpress Security By CHETAN SONI - Cyber Security Expert
Complete Wordpress Security By CHETAN SONI - Cyber Security ExpertChetan Soni
 
Whats new in ASP.NET 4.0
Whats new in ASP.NET 4.0Whats new in ASP.NET 4.0
Whats new in ASP.NET 4.0py_sunil
 
Securing Your WordPress Website - WordCamp GC 2011
Securing Your WordPress Website - WordCamp GC 2011Securing Your WordPress Website - WordCamp GC 2011
Securing Your WordPress Website - WordCamp GC 2011Vlad Lasky
 
Integrating External APIs with WordPress
Integrating External APIs with WordPressIntegrating External APIs with WordPress
Integrating External APIs with WordPressMarty Thornley
 

Was ist angesagt? (20)

Introduction to WordPress Security
Introduction to WordPress SecurityIntroduction to WordPress Security
Introduction to WordPress Security
 
Now That's What I Call WordPress Security 2010
Now That's What I Call WordPress Security 2010Now That's What I Call WordPress Security 2010
Now That's What I Call WordPress Security 2010
 
WordPress Security Presentation
WordPress Security PresentationWordPress Security Presentation
WordPress Security Presentation
 
secure php
secure phpsecure php
secure php
 
Easy Copy with AZ Copy
Easy Copy with AZ CopyEasy Copy with AZ Copy
Easy Copy with AZ Copy
 
WordPress Security - WordCamp Boston 2010
WordPress Security - WordCamp Boston 2010WordPress Security - WordCamp Boston 2010
WordPress Security - WordCamp Boston 2010
 
Threat Hunting Web Shells Using Splunk
Threat Hunting Web Shells Using SplunkThreat Hunting Web Shells Using Splunk
Threat Hunting Web Shells Using Splunk
 
ElasticSearch Meetup 30 - 10 - 2014
ElasticSearch Meetup 30 - 10 - 2014ElasticSearch Meetup 30 - 10 - 2014
ElasticSearch Meetup 30 - 10 - 2014
 
WordPress Security WordCamp OC 2013
WordPress Security WordCamp OC 2013WordPress Security WordCamp OC 2013
WordPress Security WordCamp OC 2013
 
Wamp & LAMP - Installation and Configuration
Wamp & LAMP - Installation and ConfigurationWamp & LAMP - Installation and Configuration
Wamp & LAMP - Installation and Configuration
 
WordPress Security - WordCamp NYC 2009
WordPress Security - WordCamp NYC 2009WordPress Security - WordCamp NYC 2009
WordPress Security - WordCamp NYC 2009
 
APACHE 2 HTTPS.ppt
APACHE 2 HTTPS.pptAPACHE 2 HTTPS.ppt
APACHE 2 HTTPS.ppt
 
Basics of web technologies
Basics of web technologiesBasics of web technologies
Basics of web technologies
 
4.4 PHP Session
4.4 PHP Session4.4 PHP Session
4.4 PHP Session
 
Complete Wordpress Security By CHETAN SONI - Cyber Security Expert
Complete Wordpress Security By CHETAN SONI - Cyber Security ExpertComplete Wordpress Security By CHETAN SONI - Cyber Security Expert
Complete Wordpress Security By CHETAN SONI - Cyber Security Expert
 
TL; DR: iOS 9R
TL; DR: iOS 9RTL; DR: iOS 9R
TL; DR: iOS 9R
 
Whats new in ASP.NET 4.0
Whats new in ASP.NET 4.0Whats new in ASP.NET 4.0
Whats new in ASP.NET 4.0
 
Security in php
Security in phpSecurity in php
Security in php
 
Securing Your WordPress Website - WordCamp GC 2011
Securing Your WordPress Website - WordCamp GC 2011Securing Your WordPress Website - WordCamp GC 2011
Securing Your WordPress Website - WordCamp GC 2011
 
Integrating External APIs with WordPress
Integrating External APIs with WordPressIntegrating External APIs with WordPress
Integrating External APIs with WordPress
 

Andere mochten auch

Com Penjar Una Presentació Al Moodle
Com Penjar Una Presentació Al MoodleCom Penjar Una Presentació Al Moodle
Com Penjar Una Presentació Al Moodleoscargarcia
 
De la intranet al portal colaborativo
De la intranet al portal colaborativoDe la intranet al portal colaborativo
De la intranet al portal colaborativoJose A. del Moral
 
AIETT and ITCC seminar on Ener Con in Hospitality
AIETT and ITCC seminar on Ener Con in HospitalityAIETT and ITCC seminar on Ener Con in Hospitality
AIETT and ITCC seminar on Ener Con in HospitalityPSPSolutions.net
 
Volcanic Activities By Dary
Volcanic Activities By DaryVolcanic Activities By Dary
Volcanic Activities By Darydary_93
 
Strijker, A. (2004). Reuse Of Learning Objects In Context Human And Technic...
Strijker, A. (2004). Reuse Of Learning Objects In Context   Human And Technic...Strijker, A. (2004). Reuse Of Learning Objects In Context   Human And Technic...
Strijker, A. (2004). Reuse Of Learning Objects In Context Human And Technic...guestb3607d
 
The role of renewable energy and energy efficiency in climate change and its ...
The role of renewable energy and energy efficiency in climate change and its ...The role of renewable energy and energy efficiency in climate change and its ...
The role of renewable energy and energy efficiency in climate change and its ...PSPSolutions.net
 
GossipCast Presentation
GossipCast PresentationGossipCast Presentation
GossipCast Presentationguestba1cca
 
Thailand's GHG mitigation plan
Thailand's GHG mitigation planThailand's GHG mitigation plan
Thailand's GHG mitigation planPSPSolutions.net
 
Technology And The Production Of Difference
Technology And The Production Of DifferenceTechnology And The Production Of Difference
Technology And The Production Of Differenceguestba1cca
 
Duncan Firth renewable energy and energy efficiency and its relevance to the ...
Duncan Firth renewable energy and energy efficiency and its relevance to the ...Duncan Firth renewable energy and energy efficiency and its relevance to the ...
Duncan Firth renewable energy and energy efficiency and its relevance to the ...PSPSolutions.net
 
New year resolution 2011
New year resolution 2011New year resolution 2011
New year resolution 2011andrew jones
 
Resourcing Missional Entrepreneurs
Resourcing Missional EntrepreneursResourcing Missional Entrepreneurs
Resourcing Missional Entrepreneursandrew jones
 
Gulag Presentation Natalia Keritsis April 15 2007
Gulag Presentation Natalia Keritsis April 15 2007Gulag Presentation Natalia Keritsis April 15 2007
Gulag Presentation Natalia Keritsis April 15 2007KNatalia
 
Strijker, A. (2004 Sep 18). Presentation Reuse Of Learning Objects In Context...
Strijker, A. (2004 Sep 18). Presentation Reuse Of Learning Objects In Context...Strijker, A. (2004 Sep 18). Presentation Reuse Of Learning Objects In Context...
Strijker, A. (2004 Sep 18). Presentation Reuse Of Learning Objects In Context...guestb3607d
 
Report Indagine MilanIn 2009, Business Networking MADE IN ITALY.
Report Indagine MilanIn 2009, Business Networking MADE IN ITALY.Report Indagine MilanIn 2009, Business Networking MADE IN ITALY.
Report Indagine MilanIn 2009, Business Networking MADE IN ITALY.Andrey Golub
 
Department of alternative energy development and efficiency (dede)
Department of alternative energy development and efficiency (dede)Department of alternative energy development and efficiency (dede)
Department of alternative energy development and efficiency (dede)PSPSolutions.net
 

Andere mochten auch (20)

O antes e o depois
O antes e o depoisO antes e o depois
O antes e o depois
 
Com Penjar Una Presentació Al Moodle
Com Penjar Una Presentació Al MoodleCom Penjar Una Presentació Al Moodle
Com Penjar Una Presentació Al Moodle
 
De la intranet al portal colaborativo
De la intranet al portal colaborativoDe la intranet al portal colaborativo
De la intranet al portal colaborativo
 
AIETT and ITCC seminar on Ener Con in Hospitality
AIETT and ITCC seminar on Ener Con in HospitalityAIETT and ITCC seminar on Ener Con in Hospitality
AIETT and ITCC seminar on Ener Con in Hospitality
 
Volcanic Activities By Dary
Volcanic Activities By DaryVolcanic Activities By Dary
Volcanic Activities By Dary
 
Strijker, A. (2004). Reuse Of Learning Objects In Context Human And Technic...
Strijker, A. (2004). Reuse Of Learning Objects In Context   Human And Technic...Strijker, A. (2004). Reuse Of Learning Objects In Context   Human And Technic...
Strijker, A. (2004). Reuse Of Learning Objects In Context Human And Technic...
 
The role of renewable energy and energy efficiency in climate change and its ...
The role of renewable energy and energy efficiency in climate change and its ...The role of renewable energy and energy efficiency in climate change and its ...
The role of renewable energy and energy efficiency in climate change and its ...
 
GossipCast Presentation
GossipCast PresentationGossipCast Presentation
GossipCast Presentation
 
Thailand's GHG mitigation plan
Thailand's GHG mitigation planThailand's GHG mitigation plan
Thailand's GHG mitigation plan
 
Technology And The Production Of Difference
Technology And The Production Of DifferenceTechnology And The Production Of Difference
Technology And The Production Of Difference
 
Duncan Firth renewable energy and energy efficiency and its relevance to the ...
Duncan Firth renewable energy and energy efficiency and its relevance to the ...Duncan Firth renewable energy and energy efficiency and its relevance to the ...
Duncan Firth renewable energy and energy efficiency and its relevance to the ...
 
EquivocacióN
EquivocacióNEquivocacióN
EquivocacióN
 
Global connect
Global connect Global connect
Global connect
 
New year resolution 2011
New year resolution 2011New year resolution 2011
New year resolution 2011
 
Resourcing Missional Entrepreneurs
Resourcing Missional EntrepreneursResourcing Missional Entrepreneurs
Resourcing Missional Entrepreneurs
 
Sorting Room
Sorting RoomSorting Room
Sorting Room
 
Gulag Presentation Natalia Keritsis April 15 2007
Gulag Presentation Natalia Keritsis April 15 2007Gulag Presentation Natalia Keritsis April 15 2007
Gulag Presentation Natalia Keritsis April 15 2007
 
Strijker, A. (2004 Sep 18). Presentation Reuse Of Learning Objects In Context...
Strijker, A. (2004 Sep 18). Presentation Reuse Of Learning Objects In Context...Strijker, A. (2004 Sep 18). Presentation Reuse Of Learning Objects In Context...
Strijker, A. (2004 Sep 18). Presentation Reuse Of Learning Objects In Context...
 
Report Indagine MilanIn 2009, Business Networking MADE IN ITALY.
Report Indagine MilanIn 2009, Business Networking MADE IN ITALY.Report Indagine MilanIn 2009, Business Networking MADE IN ITALY.
Report Indagine MilanIn 2009, Business Networking MADE IN ITALY.
 
Department of alternative energy development and efficiency (dede)
Department of alternative energy development and efficiency (dede)Department of alternative energy development and efficiency (dede)
Department of alternative energy development and efficiency (dede)
 

Ähnlich wie AmazonS3 & Rails

Seguranca em APP Rails
Seguranca em APP RailsSeguranca em APP Rails
Seguranca em APP RailsDaniel Lopes
 
Amazon S3 - Masterclass - Pop-up Loft Tel Aviv
Amazon S3 - Masterclass - Pop-up Loft Tel AvivAmazon S3 - Masterclass - Pop-up Loft Tel Aviv
Amazon S3 - Masterclass - Pop-up Loft Tel AvivAmazon Web Services
 
Using amazon web services with cold fusion 11
Using amazon web services with cold fusion 11Using amazon web services with cold fusion 11
Using amazon web services with cold fusion 11ColdFusionConference
 
Workshop: Building Your First Big Data Application on AWS
Workshop: Building Your First Big Data Application on AWSWorkshop: Building Your First Big Data Application on AWS
Workshop: Building Your First Big Data Application on AWSAmazon Web Services
 
Building Your First Big Data Application on AWS
Building Your First Big Data Application on AWSBuilding Your First Big Data Application on AWS
Building Your First Big Data Application on AWSAmazon Web Services
 
12 core technologies you should learn, love, and hate to be a 'real' technocrat
12 core technologies you should learn, love, and hate to be a 'real' technocrat12 core technologies you should learn, love, and hate to be a 'real' technocrat
12 core technologies you should learn, love, and hate to be a 'real' technocratlinoj
 
12 core technologies you should learn, love, and hate to be a 'real' technocrat
12 core technologies you should learn, love, and hate to be a 'real' technocrat12 core technologies you should learn, love, and hate to be a 'real' technocrat
12 core technologies you should learn, love, and hate to be a 'real' technocratJonathan Linowes
 
Capture, record, clip, embed and play, search: video from newbie to ninja
Capture, record, clip, embed and play, search: video from newbie to ninjaCapture, record, clip, embed and play, search: video from newbie to ninja
Capture, record, clip, embed and play, search: video from newbie to ninjaVito Flavio Lorusso
 
CloudFormation techniques from the Dutch trenches (DVC07) - AWS re:Invent 2018
CloudFormation techniques from the Dutch trenches (DVC07) - AWS re:Invent 2018CloudFormation techniques from the Dutch trenches (DVC07) - AWS re:Invent 2018
CloudFormation techniques from the Dutch trenches (DVC07) - AWS re:Invent 2018Martijn van Dongen
 
Joomla : Akeeba backup and Amazon S3 (new version)
Joomla : Akeeba backup and Amazon S3 (new version)Joomla : Akeeba backup and Amazon S3 (new version)
Joomla : Akeeba backup and Amazon S3 (new version)Marc DECHEVRE
 
Joomla : Akeeba backup and Amazon S3
Joomla : Akeeba backup and Amazon S3Joomla : Akeeba backup and Amazon S3
Joomla : Akeeba backup and Amazon S3Marc DECHEVRE
 
Django Files — A Short Talk (slides only)
Django Files — A Short Talk (slides only)Django Files — A Short Talk (slides only)
Django Files — A Short Talk (slides only)James Aylett
 
(SEC309) Amazon VPC Configuration: When Least Privilege Meets the Penetration...
(SEC309) Amazon VPC Configuration: When Least Privilege Meets the Penetration...(SEC309) Amazon VPC Configuration: When Least Privilege Meets the Penetration...
(SEC309) Amazon VPC Configuration: When Least Privilege Meets the Penetration...Amazon Web Services
 
Java secure development part 3
Java secure development   part 3Java secure development   part 3
Java secure development part 3Rafel Ivgi
 

Ähnlich wie AmazonS3 & Rails (20)

Amazon S3 Masterclass
Amazon S3 MasterclassAmazon S3 Masterclass
Amazon S3 Masterclass
 
Amazon S3 Masterclass
Amazon S3 MasterclassAmazon S3 Masterclass
Amazon S3 Masterclass
 
Seguranca em APP Rails
Seguranca em APP RailsSeguranca em APP Rails
Seguranca em APP Rails
 
My First Big Data Application
My First Big Data ApplicationMy First Big Data Application
My First Big Data Application
 
Amazon S3 - Masterclass - Pop-up Loft Tel Aviv
Amazon S3 - Masterclass - Pop-up Loft Tel AvivAmazon S3 - Masterclass - Pop-up Loft Tel Aviv
Amazon S3 - Masterclass - Pop-up Loft Tel Aviv
 
Amazon S3: Masterclass
Amazon S3: MasterclassAmazon S3: Masterclass
Amazon S3: Masterclass
 
Using amazon web services with cold fusion 11
Using amazon web services with cold fusion 11Using amazon web services with cold fusion 11
Using amazon web services with cold fusion 11
 
Workshop: Building Your First Big Data Application on AWS
Workshop: Building Your First Big Data Application on AWSWorkshop: Building Your First Big Data Application on AWS
Workshop: Building Your First Big Data Application on AWS
 
Introduction to Amazon S3
Introduction to Amazon S3Introduction to Amazon S3
Introduction to Amazon S3
 
Building Your First Big Data Application on AWS
Building Your First Big Data Application on AWSBuilding Your First Big Data Application on AWS
Building Your First Big Data Application on AWS
 
12 core technologies you should learn, love, and hate to be a 'real' technocrat
12 core technologies you should learn, love, and hate to be a 'real' technocrat12 core technologies you should learn, love, and hate to be a 'real' technocrat
12 core technologies you should learn, love, and hate to be a 'real' technocrat
 
12 core technologies you should learn, love, and hate to be a 'real' technocrat
12 core technologies you should learn, love, and hate to be a 'real' technocrat12 core technologies you should learn, love, and hate to be a 'real' technocrat
12 core technologies you should learn, love, and hate to be a 'real' technocrat
 
Capture, record, clip, embed and play, search: video from newbie to ninja
Capture, record, clip, embed and play, search: video from newbie to ninjaCapture, record, clip, embed and play, search: video from newbie to ninja
Capture, record, clip, embed and play, search: video from newbie to ninja
 
CloudFormation techniques from the Dutch trenches (DVC07) - AWS re:Invent 2018
CloudFormation techniques from the Dutch trenches (DVC07) - AWS re:Invent 2018CloudFormation techniques from the Dutch trenches (DVC07) - AWS re:Invent 2018
CloudFormation techniques from the Dutch trenches (DVC07) - AWS re:Invent 2018
 
Joomla : Akeeba backup and Amazon S3 (new version)
Joomla : Akeeba backup and Amazon S3 (new version)Joomla : Akeeba backup and Amazon S3 (new version)
Joomla : Akeeba backup and Amazon S3 (new version)
 
Joomla : Akeeba backup and Amazon S3
Joomla : Akeeba backup and Amazon S3Joomla : Akeeba backup and Amazon S3
Joomla : Akeeba backup and Amazon S3
 
Django Files — A Short Talk (slides only)
Django Files — A Short Talk (slides only)Django Files — A Short Talk (slides only)
Django Files — A Short Talk (slides only)
 
(SEC309) Amazon VPC Configuration: When Least Privilege Meets the Penetration...
(SEC309) Amazon VPC Configuration: When Least Privilege Meets the Penetration...(SEC309) Amazon VPC Configuration: When Least Privilege Meets the Penetration...
(SEC309) Amazon VPC Configuration: When Least Privilege Meets the Penetration...
 
AWS essentials S3
AWS essentials S3AWS essentials S3
AWS essentials S3
 
Java secure development part 3
Java secure development   part 3Java secure development   part 3
Java secure development part 3
 

Kürzlich hochgeladen

MAHA Global and IPR: Do Actions Speak Louder Than Words?
MAHA Global and IPR: Do Actions Speak Louder Than Words?MAHA Global and IPR: Do Actions Speak Louder Than Words?
MAHA Global and IPR: Do Actions Speak Louder Than Words?Olivia Kresic
 
NewBase 19 April 2024 Energy News issue - 1717 by Khaled Al Awadi.pdf
NewBase  19 April  2024  Energy News issue - 1717 by Khaled Al Awadi.pdfNewBase  19 April  2024  Energy News issue - 1717 by Khaled Al Awadi.pdf
NewBase 19 April 2024 Energy News issue - 1717 by Khaled Al Awadi.pdfKhaled Al Awadi
 
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607dollysharma2066
 
2024 Numerator Consumer Study of Cannabis Usage
2024 Numerator Consumer Study of Cannabis Usage2024 Numerator Consumer Study of Cannabis Usage
2024 Numerator Consumer Study of Cannabis UsageNeil Kimberley
 
BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,noida100girls
 
APRIL2024_UKRAINE_xml_0000000000000 .pdf
APRIL2024_UKRAINE_xml_0000000000000 .pdfAPRIL2024_UKRAINE_xml_0000000000000 .pdf
APRIL2024_UKRAINE_xml_0000000000000 .pdfRbc Rbcua
 
Islamabad Escorts | Call 03070433345 | Escort Service in Islamabad
Islamabad Escorts | Call 03070433345 | Escort Service in IslamabadIslamabad Escorts | Call 03070433345 | Escort Service in Islamabad
Islamabad Escorts | Call 03070433345 | Escort Service in IslamabadAyesha Khan
 
Lowrate Call Girls In Sector 18 Noida ❤️8860477959 Escorts 100% Genuine Servi...
Lowrate Call Girls In Sector 18 Noida ❤️8860477959 Escorts 100% Genuine Servi...Lowrate Call Girls In Sector 18 Noida ❤️8860477959 Escorts 100% Genuine Servi...
Lowrate Call Girls In Sector 18 Noida ❤️8860477959 Escorts 100% Genuine Servi...lizamodels9
 
Organizational Structure Running A Successful Business
Organizational Structure Running A Successful BusinessOrganizational Structure Running A Successful Business
Organizational Structure Running A Successful BusinessSeta Wicaksana
 
Kenya’s Coconut Value Chain by Gatsby Africa
Kenya’s Coconut Value Chain by Gatsby AfricaKenya’s Coconut Value Chain by Gatsby Africa
Kenya’s Coconut Value Chain by Gatsby Africaictsugar
 
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deck
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deckPitch Deck Teardown: Geodesic.Life's $500k Pre-seed deck
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deckHajeJanKamps
 
Future Of Sample Report 2024 | Redacted Version
Future Of Sample Report 2024 | Redacted VersionFuture Of Sample Report 2024 | Redacted Version
Future Of Sample Report 2024 | Redacted VersionMintel Group
 
Cybersecurity Awareness Training Presentation v2024.03
Cybersecurity Awareness Training Presentation v2024.03Cybersecurity Awareness Training Presentation v2024.03
Cybersecurity Awareness Training Presentation v2024.03DallasHaselhorst
 
The CMO Survey - Highlights and Insights Report - Spring 2024
The CMO Survey - Highlights and Insights Report - Spring 2024The CMO Survey - Highlights and Insights Report - Spring 2024
The CMO Survey - Highlights and Insights Report - Spring 2024christinemoorman
 
8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR
8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR
8447779800, Low rate Call girls in Shivaji Enclave Delhi NCRashishs7044
 
Annual General Meeting Presentation Slides
Annual General Meeting Presentation SlidesAnnual General Meeting Presentation Slides
Annual General Meeting Presentation SlidesKeppelCorporation
 
Innovation Conference 5th March 2024.pdf
Innovation Conference 5th March 2024.pdfInnovation Conference 5th March 2024.pdf
Innovation Conference 5th March 2024.pdfrichard876048
 
Kenya Coconut Production Presentation by Dr. Lalith Perera
Kenya Coconut Production Presentation by Dr. Lalith PereraKenya Coconut Production Presentation by Dr. Lalith Perera
Kenya Coconut Production Presentation by Dr. Lalith Pereraictsugar
 
8447779800, Low rate Call girls in Uttam Nagar Delhi NCR
8447779800, Low rate Call girls in Uttam Nagar Delhi NCR8447779800, Low rate Call girls in Uttam Nagar Delhi NCR
8447779800, Low rate Call girls in Uttam Nagar Delhi NCRashishs7044
 
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...lizamodels9
 

Kürzlich hochgeladen (20)

MAHA Global and IPR: Do Actions Speak Louder Than Words?
MAHA Global and IPR: Do Actions Speak Louder Than Words?MAHA Global and IPR: Do Actions Speak Louder Than Words?
MAHA Global and IPR: Do Actions Speak Louder Than Words?
 
NewBase 19 April 2024 Energy News issue - 1717 by Khaled Al Awadi.pdf
NewBase  19 April  2024  Energy News issue - 1717 by Khaled Al Awadi.pdfNewBase  19 April  2024  Energy News issue - 1717 by Khaled Al Awadi.pdf
NewBase 19 April 2024 Energy News issue - 1717 by Khaled Al Awadi.pdf
 
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
 
2024 Numerator Consumer Study of Cannabis Usage
2024 Numerator Consumer Study of Cannabis Usage2024 Numerator Consumer Study of Cannabis Usage
2024 Numerator Consumer Study of Cannabis Usage
 
BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
 
APRIL2024_UKRAINE_xml_0000000000000 .pdf
APRIL2024_UKRAINE_xml_0000000000000 .pdfAPRIL2024_UKRAINE_xml_0000000000000 .pdf
APRIL2024_UKRAINE_xml_0000000000000 .pdf
 
Islamabad Escorts | Call 03070433345 | Escort Service in Islamabad
Islamabad Escorts | Call 03070433345 | Escort Service in IslamabadIslamabad Escorts | Call 03070433345 | Escort Service in Islamabad
Islamabad Escorts | Call 03070433345 | Escort Service in Islamabad
 
Lowrate Call Girls In Sector 18 Noida ❤️8860477959 Escorts 100% Genuine Servi...
Lowrate Call Girls In Sector 18 Noida ❤️8860477959 Escorts 100% Genuine Servi...Lowrate Call Girls In Sector 18 Noida ❤️8860477959 Escorts 100% Genuine Servi...
Lowrate Call Girls In Sector 18 Noida ❤️8860477959 Escorts 100% Genuine Servi...
 
Organizational Structure Running A Successful Business
Organizational Structure Running A Successful BusinessOrganizational Structure Running A Successful Business
Organizational Structure Running A Successful Business
 
Kenya’s Coconut Value Chain by Gatsby Africa
Kenya’s Coconut Value Chain by Gatsby AfricaKenya’s Coconut Value Chain by Gatsby Africa
Kenya’s Coconut Value Chain by Gatsby Africa
 
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deck
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deckPitch Deck Teardown: Geodesic.Life's $500k Pre-seed deck
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deck
 
Future Of Sample Report 2024 | Redacted Version
Future Of Sample Report 2024 | Redacted VersionFuture Of Sample Report 2024 | Redacted Version
Future Of Sample Report 2024 | Redacted Version
 
Cybersecurity Awareness Training Presentation v2024.03
Cybersecurity Awareness Training Presentation v2024.03Cybersecurity Awareness Training Presentation v2024.03
Cybersecurity Awareness Training Presentation v2024.03
 
The CMO Survey - Highlights and Insights Report - Spring 2024
The CMO Survey - Highlights and Insights Report - Spring 2024The CMO Survey - Highlights and Insights Report - Spring 2024
The CMO Survey - Highlights and Insights Report - Spring 2024
 
8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR
8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR
8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR
 
Annual General Meeting Presentation Slides
Annual General Meeting Presentation SlidesAnnual General Meeting Presentation Slides
Annual General Meeting Presentation Slides
 
Innovation Conference 5th March 2024.pdf
Innovation Conference 5th March 2024.pdfInnovation Conference 5th March 2024.pdf
Innovation Conference 5th March 2024.pdf
 
Kenya Coconut Production Presentation by Dr. Lalith Perera
Kenya Coconut Production Presentation by Dr. Lalith PereraKenya Coconut Production Presentation by Dr. Lalith Perera
Kenya Coconut Production Presentation by Dr. Lalith Perera
 
8447779800, Low rate Call girls in Uttam Nagar Delhi NCR
8447779800, Low rate Call girls in Uttam Nagar Delhi NCR8447779800, Low rate Call girls in Uttam Nagar Delhi NCR
8447779800, Low rate Call girls in Uttam Nagar Delhi NCR
 
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
 

AmazonS3 & Rails

  • 2. What is it? S3 = Simple Storage System quot;Amazon S3 is storage for the Internet. It is designed to make web-scale computing easier for developers.quot;
  • 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={quot;content_typequot;=>quot;application/x-shockwave-flashquot;, quot;sizequot;=>quot;4434939quot;, quot;idquot;=>quot;315quot;, quot;filenamequot;=>quot;I_and_a.swfquot;} >> p.public_filename => quot;http://s3.amazonaws.com/reading_eggs_dev/part_files/315/ I_and_a.swfquot; >> p.full_filename => quot;part_files/315/I_and_a.swfquot; >> p.bucket_name => quot;reading_eggs_devquot;
  • 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