[zeromq-dev] bidirectionnal rpc

Pieter Hintjens ph at imatix.com
Thu May 12 16:19:09 CEST 2016

Use router-dealer or the new client-server sockets.

On Thu, May 12, 2016 at 1:21 PM, jean rouquet <outrunner at live.fr> wrote:
> Hi,
> for a simulation project I have a classic Client Server model like, but the
> server should also be able to retrieve informations from client. The number
> of clients is static.
> At first I thought about using Router / Dealer pattern for rpc in both
> directions, but this will add development complexity because I have to track
> on server side wether received message is a rpc request or a rpc response
> (rpcs are bidirectional).
> To simplify the development, I think about using the Req / Rep pattern for
> unidirectional rpc from client to server, and a per client Req / Rep pattern
> for rpcs in the other direction (server to client)
> Is this a good approach? any suggestions or remarks?
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev

More information about the zeromq-dev mailing list