ZeroMQ 中的 N 到 N 异步模式? [英] N to N async pattern in ZeroMQ?

查看:30
本文介绍了ZeroMQ 中的 N 到 N 异步模式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

虽然我阅读了指南,但我找不到执行以下操作的方法:
我们有 n 个出版商,
我们有 m 个订阅者.
每个订阅者订阅某种类型的消息(一个发布者可以发送一种以上的消息,多个发布者可以发出相同类型的消息).
如何在 0MQ 中创建 N 到 N(或 N 到 1 到 N)模式来做到这一点?

although I went through the guide I cant find a way to do the following:
we have n publishers,
we have m subscribers.
Each subscriber subscribes to certain type of msg(one publisher can send more than one kind of the message, multiple pubs can emit msgs of same type).
How to create N to N(or N to 1 to N) pattern in 0MQ that does that?

推荐答案

0MQ 自动允许 N 到 M 个网络;只需将每个订阅者连接到每个发布者.这可能会成为管理负担,在这种情况下,您可以使用所有发布者和订阅者都连接到的简单代理,请参阅 http://zguide.zeromq.org/page:all#toc36.

0MQ automatically allows N to M networks; just connect each subscriber to each publisher. That can become a burden to manage, in which case you can use a simple proxy that all publishers and subscribers connect to, see http://zguide.zeromq.org/page:all#toc36.

这篇关于ZeroMQ 中的 N 到 N 异步模式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆