ZeroMQ Topic Filtering with Pub/Sub (Java binding)

filtering, publish-subscribe, zeromq

Solution

Need to use a pub/sub envelope

Pub-Sub Message Envelopes

Problem

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

Original source