Anywhere you can use REQ, you can use DEALER. There are two specific differences: The REQ socket always sends an empty delimiter frame before any data frames; the DEALER does not. The REQ socket will send only one message before it receives a reply; the DEALER is fully asynchronous.
Implement the ROUTER Broker and DEALER Workers example.