Problem
Jul 30, 2017 · 1 min read
What is the best way of integrating node.js with Scala (Java)?
The simplest way I see so far is using Redis PubSub as a mediator, with node.js server handling HTTP requests and publishing messages to the request channel (via redis-node-client), and Scala actors (e.g. Akka Redis PubSub integration) subscribed the request channel and publishing computation results to the response channel (subscribed by nodes).
Problem courtesy of: Vasil Remeniuk
Solution
I’ve implemented a small proof-of-concept library for connecting node.js to Scala Remote Actors directly via TCP (using protobuf as a marshalling mechanism).
Solution courtesy of: Vasil Remeniuk
