Hi,

I'm trying to figure out the best way to organize a communication within a 
cluster of different node types.

In a simplified example, I have a 2-node cluster with nodes "TypeA" and 
"TypeB". Those nodes have different set of classes available in classpath, 
and implement different set of actors.
There is a "Client" application that can connect to the cluster and use 
actors from either node.

First, I've tried to set up those 2 nodes without any roles, with a 
ClusterReceptionist on every node and a ClusterClient in "Client" 
applications. However, this configuration did not work well. For example, 
if ClusterClient sends a message of class MessageA to an actor on node 
TypeA, but using TypeB node as a relay, the send operation fails because 
TypeB node does not have MessageA class required to deserialize and then 
serialize back the relying message.

I guess I need to assign a different cluster roles to those nodes, and each 
of them will have its ClusterReceptionist bound to a particular node role / 
type. I assume the receptionists should have different actor names as per 
their role. 
And having 2 receptionists means the "Client" application must have 2 
instances of ClusterClient, one for each receptionist.

My questions are:
- how to configure ClusterClients for each type of receptionist, in 
particular, how to define the initial contacts for them? I guess I need to 
provide a list of addresses of nodes of a particular type. Which might be 
painful at configuration time, if cluster has not 2 but 20 types of nodes.
- how ClusterClient updates its list of receptionist contacts, especially 
in case when more that one receptionist role in a cluster? Is it possible 
that ClusterClient can get a contact address of a receptionist of a 
different (from initial contact) role?


Thanks,
Pavel. 
  

-- 
>>>>>>>>>>      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