NodeJs Child Exec Ruby vs Pure RoR

261
July 08, 2017, at 3:12 PM

I have a lot of existing ruby scripts that are used to gather data an such. I want to build a web front-end now and will be using react to build front-end.

I would really like to use nodejs in the backend for performance benefits, but some of the ruby scripts cannot be converted to js because of some downstream dependencies.

I've been looking at things like running ruby interpreter in javascript and spawning ruby child process from nodejs. Before I go down this path, I want to see if it is worth it at all. Basically I would spawn a child process from nodejs to run ruby script and use stdin/stdout to communicate between nodejs and ruby script.

Would the workflow of creating a child process and communicating between nodejs and ruby through stdin/stdout throttle the performance of nodejs to a point that I might as well just use RoR? There might be increased complexity too when dealing with multiple requests that utilize the ruby scripts.

Rent Charter Buses Company
READ ALSO
ExpressJS (SailsJS): Base Route Parameters and Explicit Route Parameters

ExpressJS (SailsJS): Base Route Parameters and Explicit Route Parameters

I'm using SailsJS which sits atop ExpressJS and my problem is regarding how Express handles routes

322
How to extend inner nested objects into multiple objects

How to extend inner nested objects into multiple objects

In Nodejs, I want to convert to extend the nested objects into an array, details as follwing:

242
Issues with Modulus (io) for Node

Issues with Modulus (io) for Node

npm install -g modulus and I have it downloadedI tried creating an account with modulus signup which bring up:

273
How To Tell If User Is Signed Into Site From Socket.io Event

How To Tell If User Is Signed Into Site From Socket.io Event

I am using express session to log users into my siteWhen they are logged in I can access their req

259