Hi Jabbar,

No, you are not missing anything, PubSub is designed for such cases. Just
be careful not to broadcast too much data since it does not scale linearily.

-Endre


On Sat, May 3, 2014 at 1:06 AM, Jabbar Azam <aja...@gmail.com> wrote:

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



-- 
Akka Team
Typesafe - The software stack for applications that scale
Blog: letitcrash.com
Twitter: @akkateam

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