Search code examples
serializationakkaactorakka-remote-actorremote-actors

Force local akka serialization


I have some doubts regarding akka remote and serialization (what I can and can't do) and for this reason I want to force akka to use remote in the local actor systems.

How can I acheive that?


Solution

  • You can turn on serialization for all messages (remote and local):

    akka {
      actor {
        serialize-messages = on
      }
    }