🎄 Happy Holidays! 🥳
Most of Solace is closed December 24–January 1 so our employees can spend time with their families. We will re-open Thursday, January 2, 2024. Please expect slower response times during this period and open a support ticket for anything needing immediate assistance.
Happy Holidays!
Please note: most of Solace is closed December 25–January 2, and will re-open Tuesday, January 3, 2023.
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