ruby, amazon web services and you
Post on 20-Oct-2014
4.213 views
DESCRIPTION
Presentation on Amazon Web Services from RuPy 2008 conferenceTRANSCRIPT
![Page 1: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/1.jpg)
Ruby, Amazon Web Services
and You
Krzysztof Szafranek, RuPy 2008
![Page 2: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/2.jpg)
![Page 3: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/3.jpg)
![Page 4: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/4.jpg)
![Page 5: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/5.jpg)
![Page 6: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/6.jpg)
The problem
![Page 7: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/7.jpg)
EC2Elastic Compute Cloud
![Page 8: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/8.jpg)
Processing Power on Demand
![Page 9: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/9.jpg)
Amazon Machine Image (AMI)
![Page 10: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/10.jpg)
Instance
![Page 11: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/11.jpg)
Elastic IP
![Page 12: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/12.jpg)
Zones and regions
![Page 13: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/13.jpg)
Volatile storage
![Page 14: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/14.jpg)
SOAP & REST
![Page 15: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/15.jpg)
RightAws::Ec2
![Page 16: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/16.jpg)
cap ec2onrails:server:deploy_files
![Page 17: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/17.jpg)
Instance type Hourly price
Small
1.7 GB of RAM,1 Unit,160 GB,32-bit
$0.10
Large
7.5 GB of RAM,4 Units,850 GB,64-bit
$0.40
Extra Large
15 GB of RAM,8 Units,
1690 GB,64-bit
$0.80
1 EC2 Compute Unit ≈ 1.0-1.2 GHz 2007 Opteron or 2007 Xeon processor
![Page 18: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/18.jpg)
![Page 19: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/19.jpg)
S3Simple Storage Service
![Page 20: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/20.jpg)
Unlimited storage
![Page 21: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/21.jpg)
Files: 5 GB
![Page 22: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/22.jpg)
Buckets: 100
![Page 23: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/23.jpg)
Metadata
![Page 24: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/24.jpg)
Keys
![Page 25: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/25.jpg)
Keys
/images/highres/duck.jpg
![Page 26: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/26.jpg)
ACL
![Page 27: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/27.jpg)
USA and Europe
![Page 28: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/28.jpg)
Torrents
![Page 29: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/29.jpg)
AWS::S3
RightAws::S3
![Page 30: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/30.jpg)
attachment_fu
class Photo < ActiveRecord::Base has_attachment :storage => :s3end
![Page 31: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/31.jpg)
Pricing
![Page 32: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/32.jpg)
$0.18 per GB-month
($0.15 in US)
Storage
![Page 33: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/33.jpg)
In Out
$0.10
$0.18 0-10 TB
$0.16 10-50 TB
$0.13 over 50 TB
Bandwith (GB price)
Transfer within AWS is free
![Page 34: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/34.jpg)
PUT, LIST GET and other*
$0.012 per 1,000 $0.012 per 10,000
Requests
*DELETE is free
![Page 35: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/35.jpg)
![Page 36: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/36.jpg)
SimpleDB
![Page 37: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/37.jpg)
Fast storage...
![Page 38: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/38.jpg)
...for UTF-8 strings
![Page 39: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/39.jpg)
2 > 10
![Page 40: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/40.jpg)
02 < 10
![Page 41: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/41.jpg)
order by
![Page 42: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/42.jpg)
10 GB, 100 domains
![Page 43: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/43.jpg)
No schema
![Page 44: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/44.jpg)
Automatic indexing
![Page 45: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/45.jpg)
Real-time lookup
![Page 46: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/46.jpg)
RightAws::ActiveSdb
![Page 47: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/47.jpg)
AWS SDB Proxy
![Page 48: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/48.jpg)
class Post < ActiveResource::Base self.site = "http://localhost:8888" self.prefix = "/domain/" end
![Page 49: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/49.jpg)
GET /domain/posts?query QUERY
GET /domain/post/ID GET ATTRS
POST /domain/post/ID PUT ATTRS
PUT /domain/post/ID PUT ATTRS (replace)
DELETE /domain/post/ID DELETE ATTRS
![Page 50: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/50.jpg)
SQSSimple Queue Service
![Page 51: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/51.jpg)
Producers Consumers
Queue
![Page 52: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/52.jpg)
Queues
![Page 53: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/53.jpg)
Messages
![Page 54: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/54.jpg)
RightAws::Sqs
![Page 55: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/55.jpg)
Mechanical Turk
![Page 56: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/56.jpg)
Human Intelligence Tasks
![Page 57: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/57.jpg)
![Page 58: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/58.jpg)
Requesters
![Page 59: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/59.jpg)
Workers
![Page 60: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/60.jpg)
Qualifications
![Page 61: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/61.jpg)
SOAP & REST
![Page 62: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/62.jpg)
Google App Engine
![Page 63: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/63.jpg)
Google App Engine
Free* hosting
![Page 64: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/64.jpg)
Google App Engine
Python, GQL, Google Accounts
![Page 65: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/65.jpg)
Google App Engine
Quota Daily limit
Emails 2,000
Bandwith 10,000MB
CPU Megacycles 200,000,000
HTTP Requests 650,000
![Page 66: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/66.jpg)
Google App Engine
![Page 67: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/67.jpg)
AWSScalability commoditized?
![Page 68: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/68.jpg)
![Page 69: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/69.jpg)
![Page 70: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/70.jpg)
![Page 71: Ruby, Amazon Web Services and You](https://reader034.vdocuments.us/reader034/viewer/2022051608/54451081afaf9fdf2b8b466d/html5/thumbnails/71.jpg)
Marcin WicharyDiego Sevilla RuizSean DreilingerMarcello Peronginidoommeer
Thank you!
CC-licensed photos by: