Thanks, Konrad. I have a little test working, but I'm puzzled by one thing. If all I want to do is subscribe to individual channel ids (Longs, not Strings), the SubChannelClassification doesn't seem appropriate. But the LookupClassification requires overriding mapSize, which makes me think it's not suitable since I have a large range of possible channelIds. I can certainly synthesize a string classifier like /event/<channel-id>, but I thought I'd ask.
On Mon, Sep 8, 2014 at 12:04 AM, Konrad Malawski <kt...@typesafe.com> wrote: > 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 <rrods...@gmail.com> > 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 < >> martynas.mickevic...@typesafe.com> 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 <rrods...@gmail.com> >>> 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 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. >>>> >>> >>> >>> >>> -- >>> 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 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. >>> >> >> -- >> >>>>>>>>>> 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. >> > > > > -- > 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 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. > -- >>>>>>>>>> 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.