The JVM is awesome.
1. Ruby will handle the FAST frontend development as one of Ruby’s strong points is obviously Rails which made it so popular. Though there are people implementing APIs in ruby, if you need pure performance, you may need some other lang (vide airbreak, twitter…).
2. Scala will be doing all the heavy lifting including some of our existing code which interacts with zookeeper or uses Akka actors to crunch some numbers.
Another great point here is the reuse of our existing scala codebase which has some nice libraries we’ve implemented during our day-to-day. Anyway, let’s see some code!
Start out with a plain Rails 3.2 project
You know the drill. rvm, ruby, rails new. The only difference here is that we’ll use JRuby right from the start here, so:
CODE:# get JRuby and start a new rails app
CODE:# jruby dependencies in Gemfile
来自 “ ITPUB博客 ” ，链接：http://blog.itpub.net/301743/viewspace-733665/，如需转载，请注明出处，否则将追究法律责任。