Why twitter back-end moved away from Ruby on Rails to Scala/Java?

The biggest example of Ruby on Rails based application was Twitter. It was very convincing example of using Ruby on Rails on projects. It was very prestigious for Ruby and Rails.

The growing need of scaling up the application, Twitter had to decide on Scala/Java. The Ruby and Rails application is not difficult to scale. The language Scala tends to be more efficient than Ruby on Rails. Moreover Scala's includes smaller hardware costs and lower latency.

Twitter started migrating the back-end message queue to Scala (which runs on the Java Virtual Machine) for higher performance and it was very handy. They replaced the search back-end from Ruby on rails to Scala and it's now 3x faster.

Twitter Search is Now 3x Faster

Twitter still using Ruby on Rails for their front-end. The programming languages at Twitter are:
  • JavaScript
  • Scala
  • Java
  • Ruby
  • Sometimes Twitter uses C

Comments