Akka typed serialization

How can we Serialize/Deserialize ActorRef ?
Can we use “ActorRefResolver”

final ActorRef<T> myActor = ...
final String str = ActorRefResolver.get(system).toSerializationFormat(myActor);

That is correct. ActorRefResolver provides toSerializationFormat for serialization to String and resolveActorRef for deserialization from String.

1 Like