DD.
DD.

Reputation: 22011

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

Upvotes: 12

Views: 15206

Answers (2)

Tregoreg
Tregoreg

Reputation: 22306

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

Can I subscribe to messages using regex or wildcards?

No. Prefix matching only.

Upvotes: 4

DD.
DD.

Reputation: 22011

Need to use a pub/sub envelope

Pub-Sub Message Envelopes

Upvotes: 8

Related Questions