DISQUS

Community Page on DISQUS

what is this?

Jump to original thread »
Author

Rails: The Demonstration

Started by jhannes · 2 months ago

I often criticize products from the big vendors like IBM, Microsoft and Oracle for what I call the “New Coke Effect”. As retold by Malcom Gladwell in Blink, Pepsi introduced blind taste tests in the 80s. They beat Coca Cola by a big margin. In order to regain the advantag ... Continue reading »

3 comments

  • Dear sir

    Do you think that the word scalability goes together with
    the dynamic languages like Ruby or PHP.

    Recently i have been hearing and doing JRUBY
    Can you
    guide me on how can i develop a rails application in
    JRuby and
    run that application in Jetty or any JavaEE web container.

    Last thing is can you tell me where do i use blocks in more partical
    way rather than listing element of an array
  • Good questions, Niraj

    Rails have no problems with scalability for most usages. See RailsExpress for lots of tips on how to make it scale. My impression is that people are running Rails with 100s of hits per second without too much effort.

    JRuby has just recently come to a state where it can run Rails. I would wait a little with that. Unless you absolutely MUST use a J2EE-container, I think you're better of with Apache/lighttp + Mongrel + Capistrano, anyhow.

    For some cool usages of blocks, see Jamis Buck's blog, BDD from Luke Redpath, and hopefully soon, rbehave from Dan North. For the underlying justification, see Artima's interview with Matz.
  • As this thread is a few months old and a lot has happened since, here's a small update. Jruby is now in 1.0, and runs Rails perfectly. It actually outperforms C-ruby, and one of the really cool things that has spun off it is the Gold spike plugin, which lets you create WAR files from a standard Rails project. This war includes everything needed to run your Rails app inside a java app server, including JRuby itself, any JDBC drivers (unless, of course, you prefer the pure Ruby database drivers), the java ports of OpenSSL - the works.

    Gold spike probably isn't ready for production use yet, though, but Sun is working hard on it. As for the general readiness of Jruby on Rails, Thoughtworks recently announced RubyWorks (http://studios.thoughtworks.com/rubyworks) an offering where they provide support for Jruby/Rails apps.

    My recommendation is to give JRuby on rails a try. Try running Jruby with mongrel (the java port) and run it the traditional way behind Apache if you like. I'm sure you'll be satisfied!

Add New Comment

Returning? Login