简体   繁体   English

实际如何在本地Akka参与者之间传递消息

[英]How are messages actually trasferred between local akka actors

I am new to Akka and went through the Akka Documentation. 我是Akka的新手,并阅读了Akka文档。 I understood that Actors interact with each other through messages and these messages should be immutable objects. 我知道Actor通过消息相互交互,这些消息应该是不可变的对象。 i also got to know that if actors are interacting remotely then messages are passed though the network. 我还知道,如果参与者进行远程交互,则消息将通过网络传递。

My question is how is a message passed between local actors. 我的问题是本地参与者之间如何传递信息。 If i have a Actor system deployed in just one machine. 如果我仅在一台机器上部署了Actor系统。 How does these actors which share the same JVM interact with each other? 这些共享同一个JVM的参与者如何进行交互? Is it in-memory interaction? 它是内存中的交互吗?

Thanks for the reply. 谢谢回复。

Yes, it's through memory. 是的,这是通过记忆。 Specifically, there's a Queue for each actor, and when you send that actor a message, your message is appended to the queue. 具体来说,每个演员都有一个队列,当您向该演员发送消息时,您的消息将附加到队列中。

The documentation on mailboxes should help clear this up. 邮箱上的文档应有助于清除此问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM