Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Fast & Scalable

Fast & Scalable

This is a presentation I gave at Hungry Academy on making a Rails App fast & scalable. Covers the Front and backend and talks about speed and throughput optimizations.

Richard Schneeman

July 16, 2012
Tweet

More Decks by Richard Schneeman

Other Decks in Education

Transcript

  1. Problem @products = Product.all # ... <% @products.each do |product|

    %> <li><%= product.name %></li> <li>$<%= product.price %></li> <li><%= product.user.name %></li> ...
  2. Solved @products = Product.includes(:user).all # ... <% @products.each do |product|

    %> <li><%= product.name %></li> <li>$<%= product.price %></li> <li><%= product.user.name %></li> ...
  3. Amazon (AWS) Provision instances & use chef or other tools

    to install proper software, and then connect to a load balancer
  4. Master DB Slave DB Slave DB Slave DB Slave DB

    Write Copy Read Master/Slave
  5. Riak Distributed B C A Eventual Consistency D Data In

    Copied To Extra Nodes ... Eventually
  6. CDN

  7. CDN