Hi,

There is malamute broker, which is an evolution of majordomo pattern and
supports workers. It's built on top of router dealer sockets. Check out the
zeromq GitHub.

Each malamute client has id on top of mlm proto level, using socket is its
not a good idea.

Not sure about static in addresses, for the broker scenario you must have
at least one known endpoint. There is zyre project implementing discovery,
but I don't have enough information to say more.

Michal Vyskočil

Dne po 1. 4. 2019 15:02 uživatel Brett Viren via zeromq-dev <
[email protected]> napsal:

> What you describe is almost:
>
>
> http://zguide.zeromq.org/page:all#Basic-Reliable-Queuing-Simple-Pirate-Pattern
>
> The difference is you say you want clients to determine which backend
> "worker" shall receive the task based on the client providing some
> "name".  To provide that, the "load balancer" in that pattern will have
> to be modified to route based on "name" instead a measure of load.  This
> can be done straightforwardly by each worker providing a "name" in their
> message sent after each REQ connect and the "load balancer" then
> maintaining a "name" -> "router ID" lookup.
>
> You might do well to read on to the next pattern in the guide to see how
> to add heartbeating.
>
> -Brett.
>
> <[email protected]> writes:
>
> > What pattern of ZeroMQ best to use for Relay server scenario?
> >
> > Problem solving:
> >
> > 1.      There are many requestors/clients ( A,B,C )
> >
> > 2.      There are many external servers workers ( X,Y,Z )
> >
> > 3.      Need to set Relay server to serve requests from clients, forward
> it to specific worker (e.g.
> > A->X,B->Y,C->Z), get respose from worker and forward it back to
> requestor/client.
> >
> > 4.      Relay server autorizes clients and then knows which server needs
> to send request by it's
> > name.
> >
> >
> >
> > My first impression was Marjodomo pattern , but not sure how to identify
> and keep track on specific
> > worker..
> >
> > Please suggest!
> >
> > _______________________________________________
> > zeromq-dev mailing list
> > [email protected]
> > https://lists.zeromq.org/mailman/listinfo/zeromq-dev
> _______________________________________________
> zeromq-dev mailing list
> [email protected]
> https://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
_______________________________________________
zeromq-dev mailing list
[email protected]
https://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to