I want implement this flow by Akka Stream.
The root is number 1, I would like to be able to send a message to these children and that these children to these children with this type of message.
1->2
1->5
1->2->3
1->-2->4
1->5->6
问题是我对Akka一无所知。
答案 0 :(得分:0)
要执行上述操作,您可以只定义一个具有子级作为其状态的actor类型,并且在收到某些已定义的消息时将该消息传递给其子级。然后,U只需将正确的同类型子项与各自的子项设置在一起即可。 Akka流在这里不需要/有用。