I am new to Zero Mq. I am trying to implement an asynchronous request/reply pattern.
I have 1 server and N clients.
When a server receives a request from a client it passes this request to exactly one worker and waits until the worker has finished processing the request. The worker shall then send the reply back to the frontend socket which will then send it to the client.
The problem is that the socket.Send/SendMessage
method does need a byte[]
which does require to serialize my reply in the worker and then derserialize it back on the frontend.
Is there another way, where I do not need to serialize/deserialize? I would like to use the reference to the object itself, is this possible?
Thank you for your support.