[zeromq-dev] suggestion for two more Guide examples

Thomas S Hatch thatch45 at gmail.com
Mon Feb 27 22:27:28 CET 2012

On Mon, Feb 27, 2012 at 2:14 PM, MinRK <benjaminrk at gmail.com> wrote:

> 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
> For what it is worth, we do both of these in Salt, the file server
(multipart messages) is described here:

and serializations with dicts is how Salt works, I just don't have a direct
serial to 0MQ example in there (since we encrypt in between)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20120227/c7bd0f2a/attachment.htm>

More information about the zeromq-dev mailing list