[zeromq-dev] Serializing messages

Pieter Hintjens ph at imatix.com
Wed Dec 3 12:11:36 CET 2014


You can take a look at zsock_bsend and zsock_brecv, which are rather
faster (and which cut out the heap usage). There is also a reasonably
fast and serialization framework in zeromq/zproto that uses the same
format as zsock_bsend/brecv.

On Wed, Dec 3, 2014 at 10:27 AM, Min <miniway at gmail.com> wrote:
> Hi,
>
> My personal preference is MessagePack with gzip, but there would more than dozens of other options.
>
> Try picking up several libraries and compare the performances.
>
> Thanks.
> Min
>
>
>> On Dec 3, 2014, at 1:04 AM, George <ggitau at ilabafrica.co.ke> wrote:
>>
>> Hi,
>> It seems like sending multi-part messages via zstr_sendx has severely affected my through put. When using zstr_send the throughput is about 300,000 messages per second but with zstr_sendx with about 6 messages that brings it down to about 30,000 messages per second.
>>
>> I want to send all the multi-part messages all at once as one message with zstr_send so that I can improve performance. Which is the best way to serialize these messages. I could append a semi-colon at the end of each message but this could easily be messed up by a message string that already has a semi-colon in it.
>>
>>
>> _______________________________________________
>> 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



More information about the zeromq-dev mailing list