Akka是否支持没有对象序列化的进程内消息传递?

编程入门 行业动态 更新时间:2024-10-23 23:31:22
本文介绍了Akka是否支持没有对象序列化的进程内消息传递?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

希望使用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是否支持没有对象序列化的进程内消息传递?

本文发布于:2023-11-25 03:02:59,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1628054.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:进程   对象   消息   序列化   Akka

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!