[zeromq-dev] efficiency of multipart messages

Charles Remes lists at chuckremes.com
Thu May 23 17:26:44 CEST 2013

Do whichever method best expresses your solution. There is no speed or latency difference.

As a reminder, a multipart message is sent as an atomic unit. Until you send the final frame, the receiving side cannot see any parts.


On May 23, 2013, at 9:05 AM, Davide Faconti <faconti at icarustechnology.com> wrote:

> Hi,
> I have a question that, probably is a bit naive.
> I have a published that send complex data (an easy to serialize struct, that is about 200 bytes, but I guess this is not relevant).
> I publish this data in a non periodic way, in other words sometimes I have to deliver 10-20 samples of this data to the subscriber. Let's use N to refer to the number of data samples I want to send.
> I have two way to do that:
> 1) Either I publish N messages.
> 2) I use multipart messages provided by ZMQ; one message the message as N parts.
> Is one of these two ways more efficient in terms of, let's say latency or speed?
> Thanks in advance.
> -- 
> Davide Faconti
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev

More information about the zeromq-dev mailing list