57

你能举一些zeromq的例子吗?

4

6 回答 6

17

Let's say you want to have a bulletin board of some kind. You want to allow only some people to see it, by subscribing to the bulleting board.

This can be done using the publisher/subscriber model of ZeroMQ.

Now, let's say you need to send some asynchronous messages. That is, when a message is sent from system A and needs to get to system B, it is guaranteed to be delivered later, even if systems A and B cannot communicate at the moment when that message is sent. You can imagine a use case being SMS messages.

This can be done using asynchronous messaging model of ZeroMQ.

Basically, any JMS compliant solution like ZeroMQ will allow you to reliably broadcast or send a "message", whatever that message may be, to some other party with as little hassle as possible.

于 2010-12-21T13:09:01.230 回答
15

Please see the ZeroMQ blog -- they regularly post usage stories about different deployments, language bindings, etc.

于 2010-12-21T13:09:22.797 回答
9

IPython使用 ZeroMQ 实现并行计算功能、qt 控制台和笔记本

于 2012-10-31T17:39:29.917 回答
3

上次 Rick Olson 创建了 Dropbox 的“克隆”:https ://gist.github.com/122849a52c5b33c5d890

于 2011-11-22T12:25:15.333 回答
2

我个人对这个库的使用是跨语言交流:

我在 Python 和 Haskell 之间传递数据

于 2021-03-11T11:17:33.377 回答
1

他们还有一个很好的指南,可以完整地了解可能的用例及其实时应用程序。

如果你有更多的时间,你可以浏览整个网站

于 2017-04-13T12:46:58.500 回答