简体   繁体   English

从NodeJ到Erlang应用程序的RPC调用

[英]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. 我有一个用Erlang编写的应用程序,并且功能及其模块一起导出。 Currently im having a YAWS web server which is the webserver for erlang. 目前,我有一个YAWS网络服务器,它是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. 因此,调用RPC基本上是一个gen服务器调用,在这里我通过传递进程组名称并调用模块名称,函数名称及其参数来获取pid。

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. 我正在尝试从YAWS迁移到NodeJS,作为所有前端应用程序的Web服务器,并陷入了一种从NodeJ调用RPC的解决方案。

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). 从NodeJS调用erlang代码的最好方法是使用网络服务器,无论是Yaws还是Cowboy(近来使用率更高)。 There is not a direct way to call an erlang function from NodeJS as far as I know. 据我所知,没有直接方法可以从NodeJS调用erlang函数。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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