简体   繁体   中英

DNODE as a way to make Java call NodeJS functions?

On the dnode github page ( https://github.com/substack/dnode ) there is a subsection that says:

dnode in other languages
These libraries implement the dnode protocol too so you can make RPC calls between scripts written in different languages.

And one of the libraies is dnode-java. Has anyone ever used this library? Is it possible to call code/functions in NodeJS from Java using Dnode? It seems I cannot find enough documentation, examples or tutorials on this, so any help is very much appreciated.

RPC means Remote procedure call,it is a protocol that allow a program to make a subroutine call on a remote machine.

Dnode is an RPC implementation, you can create a server in nodejs and a client in java and call the functions in your nodejs server.

I never tryed dnode, can't give you my option about it, but if you just want to "integrate" java and nodejs in the same machine there another options that may be more interesting, like nodyn

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