For those familiar, this is like AMQP's topics, with a "a.b.#" at the
end of subcription pattern, or of Redis PSUBSCRIBE with "a.b.*", or
whatever. I want matching on whole words, but if it only prefix
matches are possible, I guess that's OK, I can cleanup a bit on
reception.

I'm looking to subscribe to quotes with patterns like 'a.b' match
'a.b.c' and 'a.b', but not 'a', 'a.c', or 'a.bad'.

I suspect I can use the "selector:" header, and publish with a header like:

   topickey: a.b.c

and then subscribe with

  selector: topickey LIKE 'a.b.%' OR topickey = 'a.b'

Am I going down the right path here, or is there more direct support for this?

Thanks,
Sam

Reply via email to