Search code examples
node.jserlangrpcgen-server

RPC call from NodeJs to Erlang Application


I have an application which is written in Erlang and the functions are exported along with its modules. Currently im having a YAWS web server which is the webserver for erlang. so calling an RPC is basically a gen server call where i get the a pid by passing the process group name and calling the module name, function name and and its arguments.

I am trying to migrate from YAWS to NodeJS as the webserver for all the front end applications and im stuck with a solution to call the RPCs from the NodeJs.

If anyone came across any solutions please do let me know.


Solution

  • The best way to call erlang code from NodeJS is to use a webserver be it Yaws or Cowboy (which is seeing more use these days). There is not a direct way to call an erlang function from NodeJS as far as I know.