Re: [akka-user] How to group a list of actors in Akka?

2017-03-22 Thread Konrad Malawski
On 22 March 2017 at 03:06:34, kant kodali (kanth...@gmail.com) wrote: I think I understand it better from what you said. I guess I don't have separate parent for each group therefore I was looking to see how to group the child actors but anyways since it is not the standard approach from what you

Re: [akka-user] How to group a list of actors in Akka?

2017-03-21 Thread kant kodali
I think I understand it better from what you said. I guess I don't have separate parent for each group therefore I was looking to see how to group the child actors but anyways since it is not the standard approach from what you are saying I would not go that way. I believe I can leverage event bus

Re: [akka-user] How to group a list of actors in Akka?

2017-03-21 Thread Justin du coeur
Not sure I understand the desired use case, but I believe the answer is no -- the *path* of an Actor has to be unique. That is, for a given parent, only one child may have a given name. Is there a reason not to just have the parent maintain separate lists of the different groups? You seem to be

Re: [akka-user] How to group a list of actors in Akka?

2017-03-21 Thread kant kodali
Can two actors have the same name? For Example, Can I create same instance of Actor class in a For loop so I can access all the actors by that name? On Tue, Mar 21, 2017 at 6:12 AM, Justin du coeur wrote: > Right -- that's probably the way I would tend to construct

Re: [akka-user] How to group a list of actors in Akka?

2017-03-21 Thread Justin du coeur
Right -- that's probably the way I would tend to construct something like this, but it would depend on the use case, as well as whether the "groups" in question were mutually exclusive... On Tue, Mar 21, 2017 at 9:05 AM, Konrad Malawski < konrad.malaw...@lightbend.com> wrote: > > As such, no --

Re: [akka-user] How to group a list of actors in Akka?

2017-03-21 Thread Konrad Malawski
As such, no -- there's no formal "group" concept like this, although you could construct it manually yourself. There is "all children of given actor" which is accessible by context.children() inside an Actor. -- Konrad `ktoso` Malawski Akka @ Lightbend

Re: [akka-user] How to group a list of actors in Akka?

2017-03-21 Thread Justin du coeur
As such, no -- there's no formal "group" concept like this, although you could construct it manually yourself. I suspect this use case is usually handled with PubSub -- each group subscribes to an appropriate channel. (But I don't use this myself, so can't say for sure.) On Tue, Mar 21, 2017 at

[akka-user] How to group a list of actors in Akka?

2017-03-21 Thread kant kodali
Hi All, How to group a list of actors? I want to send message A to group of Actors M and message B to group of Actors N. Is there a way to give them a common name and access them through that name so I can send my messages? or Is there any better way? Thanks! -- >> Read the