Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Akka support in-process messaging without object serialization?

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.

like image 515
raffian Avatar asked Nov 20 '13 22:11

raffian


1 Answers

Akka treats local message passing as an optimization, bypassing the remoting machinery which includes the message serializer. See location transparency.

like image 163
Connor Doyle Avatar answered Nov 03 '22 22:11

Connor Doyle