An Honest Opinion on JRuby?

View: New views
4 Messages — Rating Filter:   Alert me  

An Honest Opinion on JRuby?

by elricstorm :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


So, here's my current situation.



I run a production site that is pretty much locked down for the remainder of the football season.  After the season is over, I was thinking of possibly making the jump to JRuby.  Before I do that, I need some honest feedback:



Question 1:



Will it be very difficult to go from Ruby 1.8.6 and Rails 2.3.3 to the latest version of JRuby?  Or, is there a place to test code or debug code before making the jump?



Question 2:



My site is built around web parsing, statistics and calculations, and incorporates a lot of math core principles.  Are any of these areas affected?



Question 3:



Currently, I'm hoping to pull between 5 - 20k users in for the season with subscriptions.  If the latter number is true, I will more than likely push towards a multi-tiered setup where I have my content on one server, and my database on another.  Does Jruby and Glassfish work well with this type of setup?



Lastly, my current setup is:



Ruby 1.8.6, Rails 2.3.3, Linux Ubuntu Hardy (production server), Apache, Passenger, Capistrano with deploy from Github...



Any other possible issues I will run into?






---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: An Honest Opinion on JRuby?

by Nick Sieger-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, Aug 18, 2009 at 4:51 PM, elricstorm<jdezenzio@...> wrote:

>
> So, here's my current situation.
>
>
>
> I run a production site that is pretty much locked down for the remainder of the football season.  After the season is over, I was thinking of possibly making the jump to JRuby.  Before I do that, I need some honest feedback:
>
>
>
> Question 1:
>
>
>
> Will it be very difficult to go from Ruby 1.8.6 and Rails 2.3.3 to the latest version of JRuby?  Or, is there a place to test code or debug code before making the jump?

Shouldn't be hard at all, and you can try it with very little changes
to your existing Rails codebase. The one piece that will need to be
set up is activerecord-jdbc which allows JRuby to talk to your
database via the JDBC api. See
http://kenai.com/projects/activerecord-jdbc/pages/Home.

You can also setup database.yml to be used for both MRI and JRuby, see
http://weblogs.java.net/blog/arungupta/archive/2009/05/totd_81_how_to_1.html.

>
> Question 2:
>
>
>
> My site is built around web parsing, statistics and calculations, and incorporates a lot of math core principles.  Are any of these areas affected?

Depends on what libraries and gems you are using. See
http://isitjruby.com/ to check if gems you are using run on JRuby.
Most pure Ruby libraries work fine, as do core classes and the Ruby
standard library.

> Question 3:
>
>
>
> Currently, I'm hoping to pull between 5 - 20k users in for the season with subscriptions.  If the latter number is true, I will more than likely push towards a multi-tiered setup where I have my content on one server, and my database on another.  Does Jruby and Glassfish work well with this type of setup?

You can use GlassFish just fine in this setup. You say that you use
Passenger below currently, you'd probably keep your Apache server for
static content and proxy to GlassFish for dynamic requests.

>
> Lastly, my current setup is:
>
>
>
> Ruby 1.8.6, Rails 2.3.3, Linux Ubuntu Hardy (production server), Apache, Passenger, Capistrano with deploy from Github...
>
>
>
> Any other possible issues I will run into?

Again the other area is just to verify that gems you're using are
working with JRuby. Capistrano may or may not work, but you can always
use MRI to run Capistrano deploys.

Also, consider emailing user@... for queries like this
in the future, since your question isn't related to NetBeans at all.

Cheers,
/Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


An Honest Opinion on JRuby?

by elricstorm :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


So, I got an email asking what the site was and I forgot to post a link to it so that anyone can view it and provide feedback to my earlier question.  It helps to see something that is already in production when making the evaluation.



My apologies for not posting the link previously:



http://ncaastatpages.com






---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


RE: An Honest Opinion on JRuby?

by Brandon Hauff :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

JRuby with the glassfish gem have worked out great for us.  The
trickiest parts are setting up activerecord-jdbc-adapter (if you get
errors you may need to use 0.9.0 instead of the 0.9.1), and dancing
around a few gems that aren't compatible.  We have had great
performance, especially with true multi-threading.

I would imagine you wouldn't have to change hardly any code, just
configuration.

-Brandon

> -----Original Message-----
> From: elricstorm [mailto:jdezenzio@...]
> Sent: Wednesday, August 19, 2009 9:12 AM
> To: users@...; users@...
> Subject: An Honest Opinion on JRuby?
>
>
> So, I got an email asking what the site was and I forgot to post a
link
> to it so that anyone can view it and provide feedback to my earlier
> question.  It helps to see something that is already in production
when

> making the evaluation.
>
>
>
> My apologies for not posting the link previously:
>
>
>
> http://ncaastatpages.com
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...