ZeroMQ Topic Filtering with Pub/Sub (Java binding)

14,723

Solution 1

Need to use a pub/sub envelope

Pub-Sub Message Envelopes

Solution 2

Quoting http://zeromq.org/area:faq:

Can I subscribe to messages using regex or wildcards?

No. Prefix matching only.

Share:
14,723
DD.
Author by

DD.

Updated on June 07, 2022

Comments

  • DD.
    DD. almost 2 years

    How can I get ZeroMQ to support topics and pattern matching?

    e.g.

    stocks.*
    stocks.appl
    

    From my understanding ZeroMQ..the topic will be part of the message so I need someway of separating the topic from the actual message in the subscriber. Whats the best way of separating the topic and message? Do you need a special character (e.g. SOH)?