Hi Behrad, On Sat, Oct 11, 2014 at 10:12 PM, Behrad Zari <[email protected]> wrote:
> I want to dispatch messages to wildcard registered (can be remote) > subscribers. I see two possibilities: > > 1) Can I use remote actors as akka-camel endpoints? + routes using .when > with regex on messages would gimme wildcard pushing at the sender > you can't specify an actor as a camel endpoint. You can use ActorSelection to select multiple actors (even remote ones) with a wildcard. However a wildcard in ActorSelection can only select all actors at the specified depth. > 2) Distributed Pub/Sub but unfortunately it doesn't support wildcard > subscribers. So can I accept the overhead to subscribe all subscribers to a > single topic, and let them filter messages by their own regex? Would this > send-to-all semantic become a bottleneck in 1000 msg/sec deployment? > This needs a benchmark to see if it would be a bottleneck or not. However Akka Distributed PubSub uses optimization and sends a message over the wire only once per node (if that node has a matching topic). Another approach could be using a EventBus with custom classification rules. However EvenBus is local ActorSystem only. You would need to subscribe remote actors to the EventBus explicitly to carry messages from one node to another. > -- > >>>>>>>>>> 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.
