[zeromq-dev] Publisher side filter question
liuchuanbo at gmail.com
liuchuanbo at gmail.com
Wed Aug 21 16:42:04 CEST 2013
Hi, everyone
In ZMQ guide http://zguide.zeromq.org/page:all, I read:
From ØMQ v3.x, filtering happens at the publisher side when using a connected protocol (tcp: or ipc:). Using the epgm:// protocol, filtering happens at the subscriber side. In ØMQ v2.x, all filtering happened at the subscriber side.
So, I need to implement this scenario:
1. In publisher side: PUB
2. In subscriber side: SUB1, SUB2
3. PUB can send characters from A to Z.
4. SUB1 ONLY receive C character
SUB2 ONLY receive D character.
How to setup PUB side filter which can send C to SUB1 and D to SUB2?
This is like that a mailbox only receive his newspapers or magazines, not receive all mails and "filter" by itself. I wander PUB side filter is that clever postman :)
If filtering happens at sub side, PUB will send all the message(A-Z characters) to all the SUBs, which occupy too much network resource and be not efficient.
Anyone can help?
Thanks
Roy.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20130821/afb9de6c/attachment.htm>
More information about the zeromq-dev
mailing list