I have find a question! before, but I still don't know how to do it, if i need to build The Asynchronous Client/Server by using ROUTER to DEALER socket.
Before using zeromq, when i need to build a async server, i will separate the socket's read part and write part.
A [dispatch] worker will epoll_wait socket's read event and launch [worker] thread to do some work according to the msg,
Finally, a .send() operation will be triggered in some different thread for the same socket.
Read and send can be separated in two different thread.
Recv and Send for one socket in 2 different thread
Is it possible ( allowed ) by using zeromq socket?
Actually I search some mail-list and get negative answer.
Then I am wondering how to deal with this scenario?
If only one thread could be used for a socket, how to improve the whole server's parallelism degree and throughput?