4 ms·
The other trade-off that comes from mutable versus immutable data comes from clustering. With Go, you have the ability to make remote procedure calls very seaml
by julio83 10y ago
The other trade-off that comes from mutable versus immutable data comes from clustering. With Go, you have the ability to make remote procedure calls very seamlessly if you want to implement them, but because of pointers and shared memory, if you call a method on another box with an argument that references to something on your machine, it can’t be expected to function the same way.
I would be happy to know how we can make RPC seamless in GO accross multiple machines (clustering). I've missed a nice lib?
- sudhirj 10y agoThe std lib has RPC support https://golang.org/pkg/net/rpc/ https://golang.org/pkg/net/rpc/ Never used it, but lots of people in conferences are happy with it.
- brightball 10y agoI might need to rework that sentence. I was trying to say that clustering can only be seamless with immutable data and that, while Go has great RPC support built in that it won't ever be able to cluster naturally.
- buckhx 10y agoThe stdlib has an RPC package, but there it also has great gRPC support http://www.grpc.io/docs/quickstart/go.html http://www.grpc.io/docs/quickstart/go.html
- Spiritus 10y agoPerhaps not exactly what you/they are referring to. But this is interesting: https://github.com/docker/libchan https://github.com/docker/libchan