Looking to use Akka Actors to communicate events between Java threads in the same JVM. Some of these events contain large objects (10-100Mb). I want to avoid serializing these objects while saving memory space by passing only a reference to the object; does Akka support this? I understand it's possible to implement a custom Akka serializer, and that could be a solution, but beyond that I don't know much else about the framework.
Akka treats local message passing as an optimization, bypassing the remoting machinery which includes the message serializer. See location transparency.
来源:https://stackoverflow.com/questions/20108445/does-akka-support-in-process-messaging-without-object-serialization