1 / 26

Scalable Web Architectures with Ruby and Amazon S3

Scalable Web Architectures with Ruby and Amazon S3. or: what we learned building SlideShare. jonathanboutelle.com. Scalability?. Cheap hardware for parallelizable tasks. Parallelizing web serving. Load Balancer ($$$). Web Server. Web Server. Web Server. Sessions?. Client. 2.

buzz
Download Presentation

Scalable Web Architectures with Ruby and Amazon S3

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Scalable Web Architectureswith Ruby and Amazon S3 or: what we learned building SlideShare

  2. jonathanboutelle.com

  3. Scalability?

  4. Cheap hardware for parallelizable tasks

  5. Parallelizing web serving Load Balancer ($$$) Web Server Web Server Web Server

  6. Sessions? Client 2 Load Balancer ($$$) Web Server Web Server Web Server 1 cache cache cache 4 DataBase 3

  7. Scaling a Rails Boxen Web Server App Server cache

  8. LightHttp Mongrel Mongrel Mongrel cache

  9. LightHttp Pound Mongrel Mongrel Mongrel cache

  10. LightHttp Pound Mongrel Mongrel Mongrel backgroundrb cache

  11. LightHttp Pound Mongrel Camping Mongrel Camping Mongrel Camping backgroundrb cache

  12. LightHttp monit Pound Mongrel Camping Mongrel Camping Mongrel Camping backgroundrb cache

  13. Vs.

  14. Asynchronous Processing File Processer dbase File Processor … job2 job2 job1 File Processor

  15. Database reads ;-> master Write Write / Read writes slave1 Read writes X 1:OK 2:OK 3: Down slave2 writes

  16. Database reads ;-> master cache Write Write / Read writes slave1 Read writes X 1:OK 2:OK 3: Down slave2 writes

  17. Database writes ;-> master cache writes Write Write / Read slave1 Read writes X 1:OK 2:OK 3: Down slave2 writes

  18. Database writes ;-< Master 1 Master 1 slave1 slave2 slave1 slave2

  19. MySQL Clustering Box 1 Mirror 1 Box 2 Mirror 2

  20. Serving Static Files cache proxy cache cache

  21. Saving Static Files Data 1 A B proxy Data 2 A C Data 3 B C

  22. S3! • What is it • scaling (technically) • scaling (economically)

  23. Storage+Bandwidth Costs (failure)

  24. Storage / Bandwidth Costs (Success)

  25. Cash Flow • 1st of the month – AMZN Bill • 22nd of the month – Google AdWords Payment • 28th of the month –Credit Card Bill

  26. Things to google… • Mongrel • Monit • LightHttp • Pound / Pen • Nagios • MogileFS

More Related