Match (regex) incoming message topic to a list of topics (Python)
Hi,
I have a queue which is internally subscribed to various topics. When I read from this queue I can retrieve the original topic.
I have a list of actions in my application that run based on whether or not this topic matches that entry:
message topic:
cars/toyota
List of topic actions:
cars/bmw
>
cars/>
cars/*/>
I think I need a regex that checks if any of these topic actions matches the message topic.
I think I need to replicate Solace's internal topic matching, is that regex public by any chance?
Comments
-
Hey @MrSmart - we dont have the internal topic matching open sourced. Have you considered looking into solace topic dispatching? Basically messages with a specific Topic are dispatched to a specific callback or delegate, which might be what your use-case is about if I understood it correctly.
Check out this documentation section which might be helpful
0