Quantcast
Channel: Active questions tagged zeromq - Stack Overflow
Viewing all articles
Browse latest Browse all 193

Do zmq subscribers know to skip subsequent parts of filtered topics for multipart messages?

$
0
0

Say I have a publisher_socket and a subscriber_socket, created in two different processes. The publisher_socket publishes a two-part message, outlined in pseudo-code below.

publisher_socket.send("huge_blob", ZMQ_SNDMORE)publisher_socket.send([ 1GB buffer of data ])

Suppose thesubscriber_socket is not set up its message filter to subscribe to the topic "huge_blob". Does the associated background thread know to skip ingestion of the second part of the message? Or might I see the subscriber's memory usage shoot up to 1GB as the background thread copies the second part of the message from the network, even though it will never be used?


Viewing all articles
Browse latest Browse all 193

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>