简体   繁体   中英

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM