[zeromq-dev] suggestion for two more Guide examples

MinRK benjaminrk at gmail.com
Mon Feb 27 22:14:47 CET 2012


Two fairly general questions come up pretty often that aren't covered by
the Guide, and might warrant inclusion:

1. message structure and serialization

The answer is usually "just define your own protocol", but a simple example
that actually does this, and showing serialization of a message-as-dict via
JSON or some such would be useful to point to.  Perhaps including the
zeromq-specific notion that a Message is a *sequence* of blobs, with an
example that sends a metadata struct + zero-copy send of a buffer.

2. multi-message protocols

Another common question is "how do I send large files with zeromq?" An
example protocol for chunking a file into multiple messages would also be
instructive.  Discussion of this example could also hammer home the notion
that all segments of a message are sent together, explaining why you
wouldn't send a file as a single multipart message.

-MinRK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20120227/d9501769/attachment.htm>


More information about the zeromq-dev mailing list