by typicalrunt · 15y ago · 0 comments
Edit Oh wait, they already did. But not using a WAR file it seems.
For example, JRuby is one of the most frequently-requested languages on Heroku. Matthew Rodley has already put a Rails app onto JRuby on Heroku by adding JRuby to pom.xml. Scala, another common request, could be done the same way. We do look forward to being able to offer the same kind of first-class support for JRuby and Scala that we offer for Clojure; but in the meantime, bootstrapping via Java is a reasonable strategy.
Now if we could just get some performance comparisons between the Ruby and Java platforms on Heroku... pretty please?
Somewhere around 3.0.6 I made a simple jruby rails app and a sinatra app. They were both a thin REST layer over data in mongodb (No AR). I did load testing and the sinatra app ran fine, the rails app would fail on about 7% of requests with seemingly random stack traces. When I reran the tests with config.threadsafe! turned OFF it never failed.
Also, on Bob Lee's OSCON talk he mentioned some unthreadsafe code in AR that he found.