RIght ZeroMQ topology

帅比萌擦擦* 提交于 2019-12-05 21:22:48

Look at the MajorDomo example in the Guide: http://zguide.zeromq.org/page:all#toc71

You'd use a worker pool per exchange.

Responding to:

ROUTER->ROUTER topology instead is correct, but I can't get the code to work

My understanding is that ZMQ Sockets comes in Pairs to enable a certain pattern.

  1. PAIR
  2. REQ/REP
  3. PUB/SUB
  4. PUSH/PULL

Only PAIR socket type can talk to another socket of type PAIR and behaves similar to your normal socket.

For all other socket types, there is a complimentary socket type for communication. For example REQ socket type can only talk to REP socket type. REQ Socket type can not talk to REQ socket type.

My understanding is that in ROUTER/DEALER, ROUTER can talk to DEALER but ROUTER can not talk to ROUTER socket type.

My understanding could be wrong but from the examples this is what I have understood so far.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!