Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rryqszq4/madzmq
MadzMQ = ZeroMQ & czmq & php-zmq
https://github.com/rryqszq4/madzmq
Last synced: about 2 months ago
JSON representation
MadzMQ = ZeroMQ & czmq & php-zmq
- Host: GitHub
- URL: https://github.com/rryqszq4/madzmq
- Owner: rryqszq4
- License: lgpl-3.0
- Created: 2015-09-14T08:24:16.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-14T11:37:23.000Z (almost 9 years ago)
- Last Synced: 2023-06-09T20:31:11.185Z (over 1 year ago)
- Language: C
- Homepage:
- Size: 40 KB
- Stars: 8
- Watchers: 5
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MadzMQ
**MadzMQ**是基于**libzmq** + **czmq**实现的高性能,高可用的消息队列##架构设计
```
*--------------------*
| madclient |
+--------------------+
| DEALER |
'--------------------'
|
|
[1]
|
|
v
.--------------------.
| ROUTER |
+--------------------+
| madqueue[4] |
|--------------------|
| madbroker |
+-----+--------------+
| PUB | ROUTER | |
'-----+----+----+----+
| ^
| |
| |
[2] [3]
| |
| |
v |
.-----+----+----+----.
| SUB | DEALER | |
+--------------------+
| madserver |
*--------------------*
```- [1].madclient通过ZMQ_DEALER模式异步给madbroker发送消息,madbroker通过ZMQ_ROUTER模式异步接收消息
- [2].madbroker担当消息发布者,通过ZMQ_PUB模式发布消息;madserver作为消息订阅者,通过ZMQ_SUB模式订阅消息
- [3].madserver通过ZMQ_DEALER模式异步发消息给madbroker,从madbroker中获取当前消息的快照## Requirement
- ZeroMQ 4.1.x stable
- czmq 3.x.x stable
- php-zmq 1.1.2## Install
```sh
$ make
```## Bindings
#### php
madclient 基于php实现的客户端驱动,[代码实现]()madserver 基于php实现的消息队列订阅者,[代码实现](https://github.com/rryqszq4/yaf-lib/blob/master/src/controllers/Madserver.php)
```sh
$ ./yaf-lib/bin/madserver
```msg协议 基于php实现的简单消息协议,[代码实现](https://github.com/rryqszq4/yaf-lib/blob/master/src/library/Zmq/Msg.php)
kvmsg协议 基于php实现的简单key-value消息协议,[代码实现](https://github.com/rryqszq4/yaf-lib/blob/master/src/library/Zmq/Kvmsg.php)