[zeromq-dev] [PATCH] New wire format for REQ/REP pattern
Martin Sustrik
sustrik at 250bpm.com
Wed Jun 22 11:16:03 CEST 2011
Hi all,
This is an improved version of the "REQ socket discards duplicates" patch.
It shortens the request ID attached to the message by REQ socket to 32 bits.
It also uses 32 bit peer ID in multi-hop scenarios instead of UUIDs.
That makes the wire format almost as efficient as MPLS -- which is a
layer 2.5 protocol used beneath the IP layer and thus extremely efficient.
It also makes the implementation faster -- searching for fixed-sized
integers is more efficient than searching for variable-sized BLOBs.
Finally, as already noted yesterday, dropping duplicates is a
prerequisite for auto-resend functionality (request is resent if the
reply doesn't arrive within a specified period of time).
Please note that ROUTER socket still uses UUIDs and/or explicit
identities to preserve full backward compatibility.
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-New-wire-format-for-REQ-REP-pattern.patch
Type: text/x-diff
Size: 23207 bytes
Desc: not available
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20110622/783dd263/attachment.patch>
More information about the zeromq-dev
mailing list