Nov
25

Cassandra, Python, R, Node.js

It is quite nice, that Cassandra has driver for Python, R and Node.js.

If you want to build a website with Cassandra DB which has also heavily scientific programming, I would suggest the following combination:

  1. Python Flask  or Django + Cassandra
  2. Python(ZeroMQ, zerorpc) + R(opencpu) + Nodejs + Cassandra
    https://ianhinsdale.com/post/communicating-between-nodejs-and-python/
    https://www.opencpu.org/

The first solution is easiest, but the second solution is more elegant since you can separate the Python, Cassandra, NodeJS in different server. Thus the advantages of Node.JS will be kept. Of course, you can also use the childprocess from nodejs to call the Python and R. 
http://www.sohamkamani.com/blog/2015/08/21/python-nodejs-comm/
https://github.com/extrabacon/python-shell

Written by connygy. Posted in python, R

Trackback from your site.

Leave a comment