Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9245097
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T09:11:20+00:00 2026-06-18T09:11:20+00:00

I need to use both JRuby and MRI for my rails app. Here’s the

  • 0

I need to use both JRuby and MRI for my rails app.

Here’s the scenario –

My app uses a background server which handles a lot of threads. I’m having performance
issue with running it on MRI. The background server is started with a rake task and needs
to use the Rails environment.

I’m using Passenger for the Web Server. Since JRuby support for Passenger is quite recent,
I would like to go with using MRI.

Here’s something I want –

This uses Ruby 1.9 to start the server :

sudo passenger start -p 80 -e production --user=deploy

and within the same app, this runs the background server –

jruby -S rake background_server:start_daemon RAILS_ENV=production

The problem is, the second command jruby -S rake asks for rebundling the app.

Is there any way I can get this in place?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T09:11:21+00:00Added an answer on June 18, 2026 at 9:11 am

    Not in the same app. you’ll need separate applications that run under different rubies if you want this to happen. in SOA architecture, you’d send a message to your background server for it to process a job.

    So, in heroku you’d create one application for your web running in MRI; then you’d create an application in JRuby for your background processes. They’d communicate via a shared Redis or shared database.

    I would recommend using Trinidad or Puma and keeping it all in JRuby though (as opposed to keep running passenger); it’ll be a much simpler architecture.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here are two JavaScript classes written by others, I need to use both of
I'm confused regarding each() and .each()... I think I need to use both, but
I faced a problem - I need to use a macro value both as
I use jersey-client to consume a REST service. I need both the requested Entity
I am currently coding a new android Application, and I need to use both
I need two conditional rules. Background: http://www.domain.com/.htaccess http://www.domain.com/index.php http://www.domain.com/admin/index.php I have both re-write rules:
I'm working on an app where I'm going to use both HTML5 in UIWebView
Can you explain why I need to use both the input string and the
I am working with a form in symfony in which I need to use
I have some shared code I need to use both in a WinForm and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.