On 22 March 2017 at 03:06:34, kant kodali ([email protected]) 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 are saying I would not go that way. I believe I can leverage event
bus <http://doc.akka.io/docs/akka/current/java/event-bus.html> for this
since all I want to do is broadcast different messages to different groups
of actors within a single JVM.

Maybe, not sure what your exact use case is. Picking the simplest thing to
solve your problem is usually a good rule of thumb



Is it recommended to have multiple actors systems within the same JVM? I am
using the Play framework and it has a default Actor system but I wondering
if I should use Actor system provided by the Play framework or create my
own to leverage event bus?

One system is fine, do however read about blocking (google "akka blocking")
to learn how to configure dispatchers to avoid blocking the main dispatcher.



I am assuming the different between pub-sub and event bus is one is
distributed and other is not respectively. isn't it?

Yeah, event-bus is just a quick local thing. Distributed Pub Sub is
distributed pub-sub :)


-- 
Konrad `ktoso` Malawski
Akka <http://akka.io> @ Lightbend <http://lightbend.com>

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

Reply via email to