[zeromq-dev] which pattern to use

Michal Singer michal at leadspace.com
Mon Nov 5 14:48:22 CET 2012


Can I do the Majordomo pattern with two sockets, one in each direction to
get the feature of "return to different clients with the answer" ? Or is it
better to use the push-pull?

The push-pull is not explained a lot in the guide so I am not sure how to
implement:

1.       LRU

2.       Service discovery 

3.       Reliability

Whereas the Majordomo is explained a lot with all the examples.

 

Thanks. 

 

 

 

From: Michal Singer [mailto:Michal at leadspace.com] 
Sent: Monday, November 05, 2012 1:58 PM
To: 'ZeroMQ development list'
Subject: RE: [zeromq-dev] which pattern to use

 

Thanks for the fast replyJ

The problem with this that it uses ROUTER as broker as this is a
request-reply pattern and I don't want the reply to necessarily return to
the sender but instead to anyone which is listening in the same group of
senders.

 

From: zeromq-dev-bounces at lists.zeromq.org
[mailto:zeromq-dev-bounces at lists.zeromq.org] On Behalf Of Pieter Hintjens
Sent: Monday, November 05, 2012 12:14 PM
To: ZeroMQ development list
Subject: Re: [zeromq-dev] which pattern to use

 

You can probably base this off the Majordomo pattern.

 

On Mon, Nov 5, 2012 at 10:48 AM, Michal Singer <michal at leadspace.com> wrote:

Hi.

I am new with ZMQ. I am checking it out to use for a distributed system. I
am reading the guide but I can't find an exactly suited pattern for our
needs.

I need a pattern for:

.         a services oriented system: one which consists of groups of
service, let's say group A (A1, A2, A3,.), group B (B1,B2,B3,..), group
C(C1,C2,C3,.)

.         These services are like 'workers'

.         Each service from each group can send a request to one service
from each of the other groups

.         The reply from the destination service can go to any of the other
services from the sending group

 

Something like this:

 

A1 (send request to)->B2 (send reply to)->A2 (send request to )->C1 (send
reply to )->A1

 

 

It is some sort of a push-pull where any service should have a 'PUSH' and
'PULL' socket.

It is also some kind of a dealer to dealer type of a pattern, though it is
important that the reply can return to any of the sending group.

 

I got to chapter 6 and couldn't find any good examples of the PUSH-PULL
pattern and it seems like I need one to fully cover all scenarios of
reliability and so on.

 

What should I do?

 

Thanks in advance, Michal

 


_______________________________________________
zeromq-dev mailing list
zeromq-dev at lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20121105/4a2129d6/attachment.htm>


More information about the zeromq-dev mailing list