On Fri, Feb 26, 2016 at 6:08 PM, Val P <injvst...@gmail.com> wrote:

> Thanks, I found the GetTopics in the code eventually, and I can match
> wildcards on it.
>
> I did notice that topics hang around quite a bit, which means if I get
> topics, I may be publishing to topics that are no longer monitored. I don't
> know if that means I will create additional unnecessary cluster chatter? I
> have not been able to follow the entire code yet, is it reference-count
> based, so as clients go away the reference gets reduced to zero, and
> prevent delivering messages to nodes where there is noone listening?
>

Yes, they hang around for a while. It's configured by
https://github.com/akka/akka/blob/master/akka-cluster-tools/src/main/resources/reference.conf#L26


>
> On Friday, February 26, 2016 at 5:34:58 AM UTC-6, Akka Team wrote:
>>
>> Hi Val,
>>
>>
>>
>> On Fri, Feb 19, 2016 at 6:28 PM, Val P <injv...@gmail.com> wrote:
>>
>>> Hi All,
>>> I'm experimenting with the PubSubMediator and Akka Cluster. So far so
>>> good, but I have one use case which I cannot cover yet.
>>>
>>>
>>> Is it possible to either:
>>>
>>> a. Use a custom comparer on a  Publish operation, to match a Publish
>>> request against multiple topics using wildcards? E.g. similar to:
>>>       mediator ! Publish("prefix*", msg, { my custom comprarer... })
>>>
>>
>> No, we don't support wildcards.
>>
>>
>>>
>>> or
>>>
>>> b. Get access to the list of active topics that I can enumerate to do
>>> wildcard matching? I am assuming that the mediator maintains a local list
>>> of all defined topics in the cluster, but maybe I'm mistaken? It doesn't
>>> have to be perfectly consistent, "eventually consistent" is fine.
>>>
>>
>> There is a GetTpoics message that you can send to the PubSubMediator,
>> which in turn will answer with a CurrentTopics(Set[String]) message.
>>
>> -Endre
>>
>>
>>>
>>>
>>>
>>>
>>> --
>>> >>>>>>>>>> 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+...@googlegroups.com.
>>> To post to this group, send email to akka...@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/akka-user.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> Akka Team
>> Typesafe - Reactive apps on the JVM
>> Blog: letitcrash.com
>> Twitter: @akkateam
>>
> --
> >>>>>>>>>> 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 https://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Patrik Nordwall
Akka Tech Lead
Lightbend <http://www.lightbend.com/> -  Reactive apps on the JVM
Twitter: @patriknw

[image: Lightbend] <http://www.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 akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
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