Hi Robert,

I made an activator template 
<http://typesafe.com/activator/template/play-akka-cluster-sample> for this. 
The main point is that your play application
joins the overall akka cluster. You must take care of the linking, what 
should be done
locally and what not. 

activator new play-akka-cluster-sample

cheers,
Muki


Am Dienstag, 9. Dezember 2014 20:08:03 UTC+1 schrieb kraythe:
>
> Greetings, 
>
> I have a question about the interaction of play and Akka in a cluster. 
> Assume I have an actor that sends asynchronous notifications over a web 
> socket using Atmosphere framework (yes I know akka can do web sockets but 
> this is legacy code). I have two use cases to support. First of all I need 
> to be able to send a message to only actors on the same node. Second I need 
> to be able to send messages that are to any actor on the cluster and are 
> load balanced with the cluster. I also need to not have to hardcode in the 
> IPs of the nodes in the cluster since the system grows and shrinks 
> dynamically due to load. Assuming I have an actor at actorPath and I use 
> the following, where would the message go and how can I implement both of 
> my use cases? Hopefully without a mountain of code. 
>
> Akka.system.actorSelection(actorPath).tell("hi", Actor.noSender)
>
>
> Thanks in advance. 
>
> -- Robert
>

-- 
>>>>>>>>>>      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 http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to