Does Akka support in-process messaging without object serialization?

谁说胖子不能爱 提交于 2019-12-01 16:09:56

问题


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.


回答1:


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!