Can goroutine as an erlang spwn process across multiple hosts transparently?

It is said that when configuring erlang with cookie settings, the erlang process can run on different machines, and this is transparent to the caller. Is it possible that goroutine works like this?

+4
source share
1 answer

This is not a language feature, no. However, since there is no way in this language to ask about goroutines (for example, to obtain a stream identifier or manage it from another goroutine, as in some other languages), if you can configure transparent communication mechanisms (for example, channels that work over the network), you can create a similar effect. In fact, Rob Pike, one of the creators of Go, used to play with a package he called "netchan" to do just that, but couldn't get the semantics to the right , and so he hasn't published the final version yet. This is definitely something that he is still interested in, and will certainly follow Go's approach to abstraction.

+6
source

All Articles