Replies: 1 comment 4 replies
-
|
There should be no reason I can think of why it wouldn't be possible technically. Though I've never tried anything like this with kameo. The way the registry works with kameo is it first starts providing under the actors name you choose (here)[https://github.com/tqwewe/kameo/blob/7535935d709d04783f84dc8dc54136b2d39d8c53/src/remote/registry.rs#L330-L336], and then a record is pushed to the Kademlia DHT with the format of So to make looks ups work, you'll need to both start providing, and save the "meta" record to Kademlia DHT. In terms of the payload of a record, it is: (See into_bytes()) Nothing about this is standardized and promised as a protocol for kameo currently, but if you wanted to get it work, those are the ingredients you'd need:
I'd be happy to try and help further, but I haven't touched Go in a few years. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I tried to build a Go server using
go-libp2p v0.45.0andgo-libp2p-kad-dht v0.36.0that could communicate with a Rust client using kameo remote actors. I set up mDNS discovery with the rust-libp2p compatible service name and QUIC transport on both sides. I also initialized Kademlia DHT on the Go side and tried to register an actor name.The peers can discover each other via mDNS and establish a libp2p connection successfully. However,
RemoteActorRef::lookup_all()from the Rust side doesn't find the Go server.Is it possible to make a Go server compatible with kameo remote actors, or is the remote actor protocol Rust-only by design?
Beta Was this translation helpful? Give feedback.
All reactions