[zeromq-dev] protocol design question
Chuck Remes
cremes.devlist at mac.com
Wed Nov 16 17:34:29 CET 2011
On Nov 16, 2011, at 10:22 AM, Pieter Hintjens wrote:
> On Wed, Nov 16, 2011 at 9:11 AM, Chuck Remes <cremes.devlist at mac.com> wrote:
>
>> I need to uniquely identify the client for the life of the service. I assume the service could live for days, weeks or months (years seems a stretch). How would I choose a 32-bit integer independently from many hosts and avoid collisions?
>
> In some cases the service can allocate the ID sequentially to new
> clients. (Not seeing anything of the protocol makes this discussion
> somewhat moot.)
Ah! Good idea!
This would require the Client portion of the protocol to include a READY-type message so it could be assigned an ID by the Broker. I'll look at this.
cr
More information about the zeromq-dev
mailing list