Akka remote actor server discovery

后端 未结 3 957
走了就别回头了
走了就别回头了 2021-02-06 01:02

I would like to deploy a remote actors software made with akka on a cluster. The system is composed of several worker nodes and a single master node. The problem is that I canno

3条回答
  •  再見小時候
    2021-02-06 01:28

    A while ago I created a prototype that's intended to solve your problem (feel free to reuse the code and/or contribute).

    A few words on how does it work. It starts a remote actor for each actor registry (=node). RegistryActor holds links to all the other registries running in a distributed setup. When a new node is added to the system, it needs to know about at least one other node (ActorRegistry) and notify it. ActorRegistry than lets all other nodes know about the new one (thus, any RegistryActor has links to all other RegistryActor's), and starts a process of exchanging links to actors - at the end of it, all the actor registries have links to all actors (either local or remote) running in a system.

    For more details, please refer this blogpost.

提交回复
热议问题