Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Make Ruby interact with Node.js

Make Ruby interact with Node.js

Problem

I'm using Ruby EventMachine to build a realtime web application, so far everything works well, but I would like to add a feature which Node.js has a package for and Ruby does not (node-canvas).

I thought of replacing the entire app with Node.js, but I do prefer writing Ruby code over JavaScript. Furthermore, I'm totally new to Node.js, and although the web app code is not extremely complex, it will require time to rewrite it entirely from scratch with Node.

Is there an easy way that my Ruby code can interact with the Node.js module that I'll build specifically for this feature, maybe through piping or whatnot?

Problem courtesy of: Mikey S.

Solution

Ended up answering my own question, going to do it using Redis pub-sub capabilities.

Thanks!

Solution courtesy of: Mikey S.

Discussion

View additional discussion.



This post first appeared on Node.js Recipes, please read the originial post: here

Share the post

Make Ruby interact with Node.js

×

Subscribe to Node.js Recipes

Get updates delivered right to your inbox!

Thank you for your subscription

×