I've just looked at the documentation. I can use the 
DistributedPubSubMediator and get all the sharded actors listening to a 
topic. So when I need the contents from a particular sharded actor I can 
send a message to a topic which will be received by all the sharded actors 
and the one containing the cache information will respond.

Sounds too simple. I must be missing something...

On Friday, 2 May 2014 21:25:17 UTC+1, Jabbar Azam wrote:
>
> Hello,
>
> I want to create a cluster of actors using the cluster sharding module. I 
> want to be able to send a message to all the actors in the cluster. I've 
> read the documentation and seen the typesafe Activator example which shows 
> messages being sent to individual actors. Does anybody know if it's 
> possible to broadcast a message to all the actors using cluster sharding?
>
> Basically I'm trying to implement a persistent distributed cache and I 
> want each cache element to respond to a broadcast message which where each 
> cache element(actor) has a resulting response. 
>

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