RobotS icon indicating copy to clipboard operation
RobotS copied to clipboard

Serializing ActorRef?

Open rogeralsing opened this issue 9 years ago • 1 comments

Hi, Are you planning to make ActorRef serializable when/if you create networking support?

This has been one of the most problematic things for us when creating Akka.NET (port of Akka to .NET). Polymorphic serialization is hard and depending on serializer and platform not always possible. (LocalActorRef, DeadLetterActorRef, RemoteActorRef, RouterActorRef etc etc)

In my other actor project https://github.com/rogeralsing/gam, I ditched the ActorRef concept and used a more Erlang like PID which is a simple value that instead of using polymorphism, resolves the underlying actor. This way, the actor pid can easily be passed across the wire using e.g. protobuf as the serializer.

Just wanted to give a heads up on that one. Another benefit of the above approach would be the possibility of cross platform Go <-> Rust remoting, hint hint

If you are still going down the ActorRef route, are there some interesting ways that Rust can deal with the above?

rogeralsing avatar May 18 '16 08:05 rogeralsing

+1 for this one. 0mq does this also.

yenwel avatar Jan 16 '17 11:01 yenwel