[zeromq-dev] Question about Strange Socket Pairing
Matt Goodman
meawoppl at gmail.com
Wed Dec 5 01:35:54 CET 2012
Mmkay. That is what I was feeling. So a followup question would then be
what it the correct way to go about this? The push/pull socket thing works
well, I am just concerned about the HWM semantics of blocking.
I would much rather use a Pub/Sub connection model, but I would need
multiple publishers with a single subscriber? This seems a bit backward.
I think the XPub/XSub model has what I need, but I am unclear on the
semantics of which calls bind and which connects . . .
--Matthew Goodman
=====================
Check Out My Website: http://craneium.net
Find me on LinkedIn: http://tinyurl.com/d6wlch
On Tue, Dec 4, 2012 at 3:41 PM, Michel Pelletier <pelletier.michel at gmail.com
> wrote:
> The guide says:
>
> "Any other combination will produce undocumented and unreliable results
> and future versions of ØMQ will probably return errors if you try them."
>
> So, looks like you got lucky. You can't rely on that however and in the
> future it likely will break as the underlying protocol evolves to guard
> against these cases.
>
> -Michel
>
>
> On Tue, Dec 4, 2012 at 3:36 PM, Matt Goodman <meawoppl at gmail.com> wrote:
>
>> I am writing an application that uses ZMQ for a couple of different
>> things, one of which is error logging.
>>
>> For reasons that somewhat complicated, the logging server is written in
>> Node, and the "clients" are Python and C++.
>>
>> I had no trouble getting everything to commuicate, and send messages with
>> relative ease, however I wanted to ask a question about a strange socket
>> pairing that I found to work, when I didn't expect it to.
>>
>> Initially, my logging was done with a node "PULL" socket, and several
>> other "PUSH" clients. I wanted to eliminate the blocking behavior. I
>> started the transition to the PUB/SUB model, but when I had retooled 1/2 of
>> my code, the tests I had passed.
>>
>> Specifically, I had a PUB socket talking to a PULL socket . . .
>> successfully. . .
>>
>> Is this pairing allowed, and are there unintentional oddities I will run
>> into with it?
>>
>> Oh. Great project/product, and good work! Thanks!
>> --Matthew Goodman
>>
>> =====================
>> Check Out My Website: http://craneium.net
>> Find me on LinkedIn: http://tinyurl.com/d6wlch
>>
>>
>> _______________________________________________
>> zeromq-dev mailing list
>> zeromq-dev at lists.zeromq.org
>> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>>
>>
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20121204/24158ff3/attachment.htm>
More information about the zeromq-dev
mailing list