[zeromq-dev] Inproc Majordomo
Pieter Hintjens
ph at imatix.com
Tue Apr 22 16:20:08 CEST 2014
On Tue, Apr 22, 2014 at 1:27 PM, Lucas Russo <lerwys at gmail.com> wrote:
> I've been taking a look in the Majordomo protocol and the Github
> implementation and I was thinking about the possibility to use it
> for inproc zeroMQ nodes.
>
> With this I could have multiple threads exporting different services
> to a broker, sharing the same context, and a low-level hardware access
> layer (using PIPE sockets for inter-thread communication)
>
> 1) Does this makes sense as far as zeroMQ model is concerned?
> 2) Could I have any problems regarding sharing the same context between
> multiple threads using the Majordomo implementation?
Service-based thread lookup is definitely an elegant model. You'd want
all threads to share one context, to use inproc://
You might use a simpler protocol. though using MDP means you can
easily extend to external processes without change.
-Pieter
More information about the zeromq-dev
mailing list