Hi Heiko, 

Say I have 2 micro service nodes: web, and authentication.  For each, they 
run their own Actor System and are hosted on their own physical machine.  

I want to connect the nodes together and be able to scale up the nodes when 
needed.  For example, if the web node sends a lot of authentication 
requests to the auth node and it can’t handle the volume, I need to be able 
to dynamically add a second auth node.

For both pool and group router, there are some parts which I don’t 
understand. 

For pool router, the router needs to send the routee actor to the target 
node.  So in this cause, does the web node send an actor to the auth node 
to connect with each other?  How does this work?

For group router, since the messages are routed with Actor Selection, there 
must be one routee node up at all times.   So for the example I gave: 
a) What if there is no auth node for the web node to connect to before or 
after the group router is created
b) What happens if I want to dynamically add a second auth node, can group 
router handle this situation?

Regards, 
Lap 

On Monday, September 28, 2015 at 12:33:20 AM UTC+8, lapming.lee wrote:
>
> Hi Heiko, 
>
> I am reading up on cluster-aware pool router versus group router.  I am 
> understand group router, but not so much with pool router. 
>
> Say if I have a seed node that has a cluster aware pool router.  When I 
> create a new node with no actors in it, the pool router will automatically 
> deploy routtees there.  
>
> Here's the questions I have:
>
> 1) Then shouldn't I just build a monolithic application on a single node 
> and use cluster aware pool routers to scale horizontally but starting up 
> empty nodes? 
>
> 2) If each node has a specific role (e.g. back-end, front-end,etc), I 
> don't understand why one would deploy routtees in other nodes with 
> different or same roles.  Can you give an example?  And what would they 
> advantage be over group routers?
>
> Regards, 
> Lap 
>
> On Sunday, September 27, 2015 at 4:46:41 PM UTC+8, Heiko Seeberger wrote:
>>
>> The akka cluster is essentially a membership service for actor systems, 
>> not for actors. From the Cluster Specification 
>> <http://doc.akka.io/docs/akka/2.3.14/common/cluster.html>  „A node could 
>> be a member of a cluster without hosting any actors.“
>>
>> Actors can benefit from Akka Cluster via subscribing to cluster events. 
>> For example an actor could create child actors on every member node that 
>> joins the cluster, which is more or less what a cluster-aware pool router 
>> does.
>>
>> Cheers
>> Heiko
>>
>> --
>>
>> *Heiko Seeberger*
>> Home: heikoseeberger.de
>> Twitter: @hseeberger <https://twitter.com/hseeberger>
>> Public key: keybase.io/hseeberger
>>
>> On 27 Sep 2015, at 09:10, lapming.lee <[email protected]> wrote:
>>
>> If I have an actor system with one top-level actor under the user 
>> guardian, and under that top-level actor are multiple child actors.
>>
>> 1) When I join an cluster system:
>>
>> A. are all the actors under this actor system automatically a node now? 
>>
>> B. OR is the top-level actor the only node added to the cluster such that 
>> the entire actor system is ONE node? 
>>
>> 2) Should all the message passing go through the top-level actor under 
>> the user guardian? Or can I simply send it to any actor using the Event 
>> Stream?
>>
>> -- 
>> >>>>>>>>>> Read the docs: http://akka.io/docs/
>> >>>>>>>>>> Check the FAQ: 
>> http://doc.akka.io/docs/akka/current/additional/faq.html
>> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Akka User List" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at http://groups.google.com/group/akka-user.
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>>

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to