Sending multiple multiparty ZMQ PUB messages in parallel

What is the preferred template for this? Multiple contexts? Waiting until all templates for the message have been assembled and sent?

+3
source share
1 answer

Found a solution:

  • Each sender connects to an IPC socket PUSHand writes multi-page messages to it. When this is done, it closes the socket.
  • A special thread receives IPC on the opposite socket PULLand writes messages in parts to a single TCP socket PUB.
+3
source

Source: https://habr.com/ru/post/1779174/


All Articles