12

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)?

DD.
  • 21,498
  • 52
  • 157
  • 246

2 Answers2

8

Need to use a pub/sub envelope

Pub-Sub Message Envelopes

Community
  • 1
  • 1
DD.
  • 21,498
  • 52
  • 157
  • 246
4

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

Can I subscribe to messages using regex or wildcards?

No. Prefix matching only.

Tregoreg
  • 18,872
  • 15
  • 48
  • 69