Ruby,
Amazon Web Services
            and You




     Krzysztof Szafranek, RuPy 2008
The problem
EC2
Elastic Compute Cloud
Processing Power on Demand
Amazon Machine Image (AMI)
Instance
Elastic IP
Zones and regions
Volatile storage
SOAP & REST
RightAws::Ec2
cap ec2onrails:server:deploy_files
Instance type                             Hourly price
                        1.7 GB of RAM,
                            ...
S3
Simple Storage Service
Unlimited storage
Files: 5 GB
Buckets: 100
Metadata
Keys
Keys
/images/highres/duck.jpg
ACL
USA and Europe
Torrents
AWS::S3
RightAws::S3
attachment_fu

class Photo < ActiveRecord::Base
  has_attachment :storage => :s3
end
Pricing
Storage

$0.18 per GB-month

    ($0.15 in US)
Bandwith (GB price)

  In               Out
         $0.18               0-10 TB

 $0.10   $0.16              10-50 TB

  ...
Requests

PUT, LIST          GET and other*

$0.012 per 1,000     $0.012 per 10,000




                              *DEL...
SimpleDB
Fast storage...
...for UTF-8 strings
2 > 10
02 < 10
order by
10 GB, 100 domains
No schema
Automatic indexing
Real-time lookup
RightAws::ActiveSdb
AWS SDB Proxy
class Post < ActiveResource::Base
  self.site   = quot;http://localhost:8888quot;
  self.prefix = quot;/domain/quot;
end
GET     /domain/posts?query         QUERY

 GET       /domain/post/ID         GET ATTRS

POST       /domain/post/ID       ...
SQS
Simple Queue Service
Queue




Producers           Consumers
Queues
Messages
RightAws::Sqs
Mechanical Turk
Human Intelligence Tasks
Requesters
Workers
Qualifications
SOAP & REST
Google App Engine
Google App Engine


 Free* hosting
Google App Engine


Python, GQL, Google Accounts
Google App Engine

  Quota          Daily limit
    Emails           2,000

   Bandwith        10,000MB

CPU Megacycles   ...
Google App Engine
AWS
Scalability commoditized?
Thank you!
                          krzysztof@szafranek.net




CC-licensed photos by:   Marcin Wichary
                 ...
Ruby, Amazon Web Services and You
Ruby, Amazon Web Services and You
Ruby, Amazon Web Services and You
Ruby, Amazon Web Services and You
Ruby, Amazon Web Services and You
Ruby, Amazon Web Services and You
Ruby, Amazon Web Services and You
Ruby, Amazon Web Services and You
Ruby, Amazon Web Services and You
Ruby, Amazon Web Services and You
Upcoming SlideShare
Loading in …5
×

Ruby, Amazon Web Services and You

2,632 views

Published on

Presentation on Amazon Web Services from RuPy 2008 conference

Published in: Technology, News & Politics
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
2,632
On SlideShare
0
From Embeds
0
Number of Embeds
136
Actions
Shares
0
Downloads
71
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Ruby, Amazon Web Services and You

  1. 1. Ruby, Amazon Web Services and You Krzysztof Szafranek, RuPy 2008
  2. 2. The problem
  3. 3. EC2 Elastic Compute Cloud
  4. 4. Processing Power on Demand
  5. 5. Amazon Machine Image (AMI)
  6. 6. Instance
  7. 7. Elastic IP
  8. 8. Zones and regions
  9. 9. Volatile storage
  10. 10. SOAP & REST
  11. 11. RightAws::Ec2
  12. 12. cap ec2onrails:server:deploy_files
  13. 13. Instance type Hourly price 1.7 GB of RAM, 1 Unit, Small $0.10 160 GB, 32-bit 7.5 GB of RAM, 4 Units, Large $0.40 850 GB, 64-bit 15 GB of RAM, 8 Units, Extra Large $0.80 1690 GB, 64-bit 1 EC2 Compute Unit ≈ 1.0-1.2 GHz 2007 Opteron or 2007 Xeon processor
  14. 14. S3 Simple Storage Service
  15. 15. Unlimited storage
  16. 16. Files: 5 GB
  17. 17. Buckets: 100
  18. 18. Metadata
  19. 19. Keys
  20. 20. Keys /images/highres/duck.jpg
  21. 21. ACL
  22. 22. USA and Europe
  23. 23. Torrents
  24. 24. AWS::S3 RightAws::S3
  25. 25. attachment_fu class Photo < ActiveRecord::Base has_attachment :storage => :s3 end
  26. 26. Pricing
  27. 27. Storage $0.18 per GB-month ($0.15 in US)
  28. 28. Bandwith (GB price) In Out $0.18 0-10 TB $0.10 $0.16 10-50 TB $0.13 over 50 TB Transfer within AWS is free
  29. 29. Requests PUT, LIST GET and other* $0.012 per 1,000 $0.012 per 10,000 *DELETE is free
  30. 30. SimpleDB
  31. 31. Fast storage...
  32. 32. ...for UTF-8 strings
  33. 33. 2 > 10
  34. 34. 02 < 10
  35. 35. order by
  36. 36. 10 GB, 100 domains
  37. 37. No schema
  38. 38. Automatic indexing
  39. 39. Real-time lookup
  40. 40. RightAws::ActiveSdb
  41. 41. AWS SDB Proxy
  42. 42. class Post < ActiveResource::Base self.site = quot;http://localhost:8888quot; self.prefix = quot;/domain/quot; end
  43. 43. 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
  44. 44. SQS Simple Queue Service
  45. 45. Queue Producers Consumers
  46. 46. Queues
  47. 47. Messages
  48. 48. RightAws::Sqs
  49. 49. Mechanical Turk
  50. 50. Human Intelligence Tasks
  51. 51. Requesters
  52. 52. Workers
  53. 53. Qualifications
  54. 54. SOAP & REST
  55. 55. Google App Engine
  56. 56. Google App Engine Free* hosting
  57. 57. Google App Engine Python, GQL, Google Accounts
  58. 58. Google App Engine Quota Daily limit Emails 2,000 Bandwith 10,000MB CPU Megacycles 200,000,000 HTTP Requests 650,000
  59. 59. Google App Engine
  60. 60. AWS Scalability commoditized?
  61. 61. Thank you! krzysztof@szafranek.net CC-licensed photos by: Marcin Wichary Diego Sevilla Ruiz Sean Dreilinger Marcello Perongini doommeer

×