擅长:python、mysql、java
<p>我认为使用PUSH/PULL套接字更有意义,因为您有一个标准的<a href="http://zguide.zeromq.org/page%3aall#Divide-and-Conquer" rel="nofollow">Ventilator - Workers - Sink</a>场景,只是呼吸机和水槽是相同的过程。</p>
<p>另外,考虑使用<a href="http://docs.python.org/library/multiprocessing.html" rel="nofollow">multiprocessing</a>模块而不是ZeroMQ。可能会容易一点。</p>