Hi Thibault,

So finally, how did you implement this requirement of yours? 

I'm facing on a similar problem in which each actor is a Facebook Messenger 
user. I don't know in advance if these users exist so that I have to create 
a new actor if one does not exist. 

Thanks,

Manh-Ha


On Wednesday, September 4, 2013 at 5:30:58 PM UTC+2, Thibaut Robert wrote:
>
> Hi,
>
> I'd like to have some advise on how to implement this kind of pattern. 
> Some words about my context (will try to keep it short):
>
> The simple case first: I have a Client / Server architecture, clients 
> communicates to the servers through akka remote.
> Let's say that client identify it self by a name. To each client, I assign 
> an actor (or graph of actors) on the server. There is a state maintained by 
> the actor for each client.
>
> Now I wonder if I should use actorOf (with a remote deployment config) or 
> actorSelection on the client. The client doesn't know if the actor for him 
> has already been instantiated on the server or not. I think I can manage by 
> first using actorSelection, sending a message, then remote deploy with 
> actorOf if I have no reply. 
> But maybe there is already a known good practice for this use case ?
>
>
> Full case now: It's not a single server but a group of server in an akka 
> cluster. The client uses a ClusterRouter to communicate with the cluster 
> (ScatterGatherFirstCompletedRouter in my case, but I should not matter a 
> lot). To my understanding, I have two options :
> - specify a routee path in the ClusterRouterConfig: in this case, actor 
> must already exists on my cluster nodes
> - don't specify it: routees will be created remotely on the router creation
>
> What I would like would be : specify a routee path, and remote deploy them 
> only if they don't already exists.
>
> Do you have any idea or suggestions ? Do you think this is a good pattern 
> that should be implement, or maybe this pattern is wrong ?
>
> Thanks,
> Thibaut
>
>  
>

-- 
>>>>>>>>>>      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 akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to