There is a complex set of relationships in the router's zmq code.
front-end socket for the agent
back-end inproc socket that worker threads connect to
front-end forwards to back-end and the work gets picked up round-robin
outgoing inproc socket
send requests to agents get sent to outgoing socket, which are picked up and forwarded to the front-end socket in the worker main
There is a complex set of relationships in the router's zmq code.
front-end socket for the agent back-end inproc socket that worker threads connect to front-end forwards to back-end and the work gets picked up round-robin
outgoing inproc socket send requests to agents get sent to outgoing socket, which are picked up and forwarded to the front-end socket in the worker main