希望使用Akka Actors在同一JVM中的Java线程之间传递事件。其中一些事件包含大对象(10-100Mb)。我想避免序列化这些对象,同时通过仅传递对象的引用来节省内存空间; Akka支持这个吗?我了解可以实施自定义Akka序列化程序,可能是一个解决方案,但除此之外我不太了解该框架。
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将本地消息传递视为优化,绕过包括消息序列化器的远程处理机器。请参阅位置透明度。
Akka treats local message passing as an optimization, bypassing the remoting machinery which includes the message serializer. See location transparency.
更多推荐
Akka是否支持没有对象序列化的进程内消息传递?
发布评论