×
Eventil - Find Tech Events
Official mobile app
FREE - In Google Play
View
×
Eventil
Official mobile app
FREE - In App Store
View

High Performance APIS in Ruby Using ActiveRecord and Goliath

0 0

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.

RailsConf 2015

This year’s event is hosted in Phoenix, known for its year-round sun and warm temperatures. As the biggest metropolis in the American Southwest, Phoenix mixes exciting big-city attractions and…