You have multiple system components:
>Database
>Authentication
>Network
As described in the microservice model, each system component runs on a separate host. When bonding these hosts together, you need to:
>Run an Actor system that acts as one of the seed nodes on each host
>Describe the role of each host so that you can direct messages to the correct component
This is my question:
>Can you not run an Actor system on each host and still link to the cluster?
>How to direct messages based on roles? Suppose I want to direct database messages from the web component to the database component?
1 Yes, if physically located on another system, you need to run a separate actor system. This way you can join the seed node. Otherwise, when the actor dies, no actor system restarts it.
2) The role is not used to guide messages. It is only used to indicate to other nodes in the cluster that the node with this mark has joined the cluster.
To send messages to different nodes, you need to use a Custer router< /p>
This is my assumption based on Stackoverflow reading.
You have multiple system components:
>Database
>Authentication
>Network
As described in the microservice model, each system component runs on a separate host. When gluing these hosts together, you need to:
>Run an Actor system that acts as one of the seed nodes on each host
>Describe the role of each host so that you can direct messages to the correct component
This is my question:
>Can you not run an Actor system on each host and still link to the cluster?
>How to direct messages based on roles? Suppose I want to direct database messages from the web component to the database component?
Find the answer after some research.
1) Yes, if it is physically located on another system , You need to run a separate actor system. This way you can join the seed node. Otherwise, when the actor dies, no actor system restarts it.
2) The role is not used for guiding messages. It is only used for Indicate to other nodes in the cluster that the node with this mark has joined the cluster.
To send messages to different nodes, you need to use the Custer router
p>