Reputation:
Here's my assumption based on Stackoverflow reading.
You have a multiple system components:
Each system component runs on a separate host as described in the microservice pattern. In other to glue these host together you need to:
Here are my questions:
Upvotes: 4
Views: 128
Reputation:
Figure out the answer after some studying.
1) Yes, you need to run a separate actor system if it is physically on another system. This is so that you can join the seed nodes. Otherwise, when the actor dies, there is not actor system to restart it.
2) Roles are not used to direct messages. It is simply used to indicate to the other nodes in the cluster that a node with this tag has joined the cluster.
In order to send messages to different nodes, you need to use Custer Routers
Upvotes: 1