Hi guys, exactly, I'd go with an Subchannel classification EventBus in this case. This way you can even define hierarchies of these topics the actors are interested in.
You may also enjoy this article by Ben Howell which we've featured on letitcrash.com <http://letitcrash.com/post/83622461507/publish-subscribe-using-akka-eventbus> some time ago: http://www.benhowell.net/examples/2014/04/23/scala_and_the_akka_event_bus/ Happy hakking! On Sat, Sep 6, 2014 at 7:18 PM, Richard Rodseth <[email protected]> wrote: > Thanks. For those, following along, this is helpful: > > http://www.kotancode.com/tag/event-bus/ > > > On Sat, Sep 6, 2014 at 1:09 AM, Martynas Mickevičius < > [email protected]> wrote: > >> Hello Richard, >> >> I think Event Bus >> <http://doc.akka.io/docs/akka/2.3.6/scala/event-bus.html> can help you >> there where children can subscribe to an interested channel on a bus. >> >> >> On Fri, Sep 5, 2014 at 11:44 PM, Richard Rodseth <[email protected]> >> wrote: >> >>> Suppose I have messages containing a "channel id" coming to a parent >>> actor. There are many children, each of which is interested in one or more >>> channels. In other words, a channel message needs to be dispatched to a >>> subset of the children. >>> >>> I'm aware of ActorSelection and have looked at the routing docs, but >>> neither seemed to fit. >>> >>> I could maintain a Map in the parent from channelid to list of actor >>> paths, or I could send each message to all children. >>> >>> Am I missing anything? >>> >>> Thanks in advance. >>> >>> -- >>> >>>>>>>>>> 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. >>> >> >> >> >> -- >> Martynas Mickevičius >> Typesafe <http://typesafe.com/> – Reactive >> <http://www.reactivemanifesto.org/> Apps on the JVM >> >> -- >> >>>>>>>>>> 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. >> > > -- > >>>>>>>>>> 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. > -- Cheers, Konrad 'ktoso' Malawski hAkker @ Typesafe <http://typesafe.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 http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
