[zeromq-dev] statefull proxy or broker ?

Pieter Hintjens ph at imatix.com
Sat Nov 9 09:31:26 CET 2013

Read the Guide specifically wrt Majordomo and Freelance patterns.

On Fri, Nov 8, 2013 at 4:17 PM, Laurent Alebarde <l.alebarde at free.fr> wrote:
> Hi All,
> I would like your advices on an architectural point please, where sessions
> between clients and workers shall be managed. A session starts with an
> authentication of the client, then there are both sides messages exchanges,
> then one closes the session. During a session, in my project, there is some
> "memory" in the exchanges. So either one client shall speak always to the
> same worker, either the "memory" aspects shall be managed by a broker.
> To be clear, let's consider the two following solutions:
> CLIENTS---PROXY---WORKERS: Here, the "memory" is managed at WORKER level.
> Then the PROXY shall link one CLIENT always to the same WORKER, so the PROXY
> is ROUTER-ROUTER. The CLIENT identities are put in a table of WORKER
> assignation inside the PROXY.
> CLIENTS---BROKER---WORKERS: Here, the "memory" is managed at BROKER level.
> The jobs sent to the WORKER can be performed as a single task unit, and one
> CLIENT can use different WORKERs transparently in the same session. Here,
> the BROKER can be a ROUTER-DEALER. But the BROKER can therefore be a
> bottleneck if the "memory" management is a bit heavy.
> Your thoughts please, pros/cons, other solutions ?
> Laurent
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Pieter Hintjens
CEO of iMatix.com
Founder of ZeroMQ community
blog: http://hintjens.com

More information about the zeromq-dev mailing list