Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要在 AKKA 演员模型系统中实现各种拓扑,如线、网格等。AKKA 中是否有用于各种拓扑的内置库?如果不是,我该如何构建这样的拓扑?此外,我们如何在 AKKA 中连接两个或多个参与者,因为这是创建任何拓扑的基础?
谢谢
我认为拓扑在 Akka 中没有任何意义。
如您所见,创建拓扑的基本工具是两个实体之间的连接。但是这样的连接在 Akka 中是不存在的,因为任何 Actor 都可以向任何 Actor 发送消息。毕竟这是actor模型的基础。
当然,您可以尝试手动模拟一些拓扑,但我看不出它有什么用处。