Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ZeroMQ Topic Filtering with Pub/Sub (Java binding)

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

like image 472
DD. Avatar asked May 03 '12 08:05

DD.


2 Answers

Need to use a pub/sub envelope

Pub-Sub Message Envelopes

like image 185
DD. Avatar answered Nov 18 '22 00:11

DD.


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

Can I subscribe to messages using regex or wildcards?

No. Prefix matching only.

like image 43
Tregoreg Avatar answered Nov 18 '22 00:11

Tregoreg