【发布时间】:2014-12-16 18:34:36
【问题描述】:
我一直在阅读有关 zmq 设计模式的信息,但似乎没有发现它适合我的需要。
1. Box A sends info (json) to Box B and C; B and C gets different info from each other
2. Boxes B and C do some work based on info received from Box A
3. After finishing the work, Boxes B and C sends result back to Box A
转发设备(http://learning-0mq-with-pyzmq.readthedocs.org/en/latest/pyzmq/devices/forwarder.html)可以实现第1步和第2步,但不能实现第3步,对吗?
有什么模式可以用来实现吗?
它是简单的请求/回复模式吗?
如果是这样,是否有一个集中的请求/回复模式,以便框 A 不选择框 B 和 C,而是框 A 将信息发送到中心,它知道发送到框 B 和 C 并将结果发送回框 A?
【问题讨论】: