I have a case that needs to manipulate a large stream of JSON and inject it into Apache HBase. Our system works on Node.js with Mongo then, since we need to enhance performance, so HBase is choosen to handle the big data things.
To enhance my system scalability, I prefer using the Actor Model by Akka for messaging instead of using any other messaging system. It's because Actor Model that Akka provides gives me any advantages about fail safe, Actor management, and other features that's very helpful to make my job easy. But it still in JVM layer that directly injecting and consuming data from HBase.
I want my Node.js apps also works under Akka system maybe using node-java
. Is it good practice? If it's not, is there any solution that Node.js can communicate with Akka?
ps. my question here is about how to work with Akka and Node.js, not arguing about "why choose to use Node.js when JVM has really fast JSON manipulating library", because our system are already benchmarked and Node.js was the chosen one to handle JSON manipulation. Also it's already at production stage, so migration totally from Node.js to full Scala is not our priority today.