zmq.rs icon indicating copy to clipboard operation
zmq.rs copied to clipboard

Implement CLIENT and SERVER Socket types

Open andrewdavidmackenzie opened this issue 5 years ago • 2 comments

I am interested in using the Client-Server pattern (https://zeromq.org/socket-api/) in my rust project, so just wanted to register that interest here and add these socket types to the list of issues for implementing others.

andrewdavidmackenzie avatar Oct 22 '20 10:10 andrewdavidmackenzie

@andrewdavidmackenzie there are already some working examples that you can play with - https://github.com/zeromq/zmq.rs/tree/master/examples

Could you please describe your usecase in more details so I would understand better what exactly do you need

Alexei-Kornienko avatar Nov 04 '20 22:11 Alexei-Kornienko

Hi, I want a single central server that gets "jobs" submitted from clients, the channel back to the client has an ID that the server stores in the job and uses to send updates to that client as the job is processed (seconds or minutes to complete).

The server is multi threaded/async and able to process multiple jobs in parallel, so it needs a unique channel (via ID?) back to the client that submitted it.

It needs to be able to accept new jobs at any time, from any new client.

With REQ/REP (I have implemented) there is a pair of "channels" so server can just reply to the one client AFAIK.

When reading the docs, it sounded like the experimental client-server model fitted those needs.

Thanks for asking

andrewdavidmackenzie avatar Nov 05 '20 08:11 andrewdavidmackenzie