Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RPC example #5

Open
saleyn opened this issue Jul 17, 2024 · 1 comment
Open

RPC example #5

saleyn opened this issue Jul 17, 2024 · 1 comment

Comments

@saleyn
Copy link

saleyn commented Jul 17, 2024

Is there an example of making an RPC call (e.g. rpc:call(RemoteNode, erlang, node, [])) from go to erlang?

@halturin
Copy link
Contributor

halturin commented Jul 29, 2024

No support so far. Maybe in the future releases of proto/erlang23. But for now, the main problem to implement this feature is how Erlang handles Remote Spawn request in the DIST proto (RPC requests are using this feature under the hood) - Erlang always returns PID value, even on fails (just returns fake pid in such cases and "This is the intended behavior" they said). At the same time, documentation for the SPAWN_REPLY says

Result of the operation. If Result is a process identifier, the operation succeeded and the process identifier is the identifier of the newly created process. If Result is an atom, the operation failed and the atom identifies failure reason

It can be workarounded, for sure, but requires way more frictions.

PS please, don't close this issue, may be somebody else is looking for an answer for the same question.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants