https://segmentfault.com/q/1010000000638839
在zeromq的guide里,它用router/dealer模式做了一个broker
client对应ZMQ_REQ类型的zmq_socket
worker对应ZMQ_REP类型的zmq_socket
broker创建一个router和一个dealer,router接受client的消息并转发给worker,worker再把处理结果发送给dealer,dealer再转发给client.
https://segmentfault.com/q/1010000000638839
在zeromq的guide里,它用router/dealer模式做了一个broker
client对应ZMQ_REQ类型的zmq_socket
worker对应ZMQ_REP类型的zmq_socket
broker创建一个router和一个dealer,router接受client的消息并转发给worker,worker再把处理结果发送给dealer,dealer再转发给client.