Does Publish-Subscribe method work if:
- publisher and subscribers are in different networks (I’ve checked once – it works)
- subscribers are behind NAT\firewall
In both cases packet routing works correctly.
As I understand PUB\SUB uses the same TCP transport, so if PUB\SUB doesn’t work so standard windows winsock doesn’t work too?
Is PUB\SUB proxy (like that http://zguide.zeromq.org/page:all#toc34) needed if packet routing mechanism is undefined only?
I’ve found some code uses PUB\SUB model and works with NAT here http://grokbase.com/t/zeromq/zeromq-dev/112q9934vg/nat-firewall-pub-sub-traversal:
Publisher that connects, rather than binds:
Subscriber that binds, rather than connects: