RailsConf 2015 - High performance APIs in Ruby using ActiveRecord and Goliath

Channel:
Subscribers:
42,400
Published on ● Video Link: https://www.youtube.com/watch?v=U8An88L5nBk



Duration: 31:07
2,280 views
17


By, Dan Kozlowski & Colin Kelley
We had a real-time API in Rails that needed much lower latency and massive throughput. We wanted to preserve our investment in business logic inside ActiveRecord models while scaling up to 1000X throughput and cutting latency in half. Conventional wisdom would say this was impossible in Ruby, but we succeeded and actually surpassed our expectations. We'll discuss how we did it, using Event-Machine for the reactor pattern, Synchrony to avoid callback hell and to make testing easy, Goliath as the non-blocking web server, and sharding across many cooperative processes.




Other Videos By Confreaks


2015-05-13RailsConf 2015 - How to Talk to Humans: a Different Approach to Soft Skills
2015-05-13RailsConf 2015 - Rapid Data Modeling Using ActiveRecord and the JSON Data Type
2015-05-13RailsConf 2015 - Metasecurity: Beyond Patching Vulnerabilities
2015-05-13RailsConf 2015 - How to Program with Accessibility in Mind
2015-05-12RailsConf 2015 - Sometimes a Controller is Just a Controller
2015-05-12RailsConf 2015 - 5 Secrets We Learned While Building a Bank in 16 Months
2015-05-12RailsConf 2015 - Scaling Rails for Black Friday and Cyber Monday
2015-05-12RailsConf 2015 - AMS, API, Rails and a developer, a Love Story
2015-05-12RailsConf 2015 - You, Too, Can Be A Webserver
2015-05-12RailsConf 2015 - Why Your New API Product Will Fail
2015-05-12RailsConf 2015 - High performance APIs in Ruby using ActiveRecord and Goliath
2015-05-12RailsConf 2015 - Playing Games In The Clouds
2015-05-12RailsConf 2015 - Processes and Threads - Resque vs. Sidekiq
2015-05-12RailsConf 2015 - Adventures in Federating Authorization and Authentication with OAuth
2015-05-12RailsConf 2015 - Better callbacks in Rails 5
2015-05-12RailsConf 2015 - Slightly Less Painful Time Zones
2015-05-12RailsConf 2015 - Speed Science
2015-05-12RailsConf 2015 - So Long, Hoboken: Migrating a Huge Production Codebase from Sinatra to Rails
2015-05-11RailsConf 2015 - Sometimes a Controller is Just a Controller
2015-05-08RailConf 2015 - Crossing the Canyon of Cognizance: A Shared Adventure
2015-05-08RailsConf 2015 - What I've Learned in 7 Years of Podcasting about Ruby