GithubHelp home page GithubHelp logo

madzmq's Introduction

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

$ make

Bindings

php

madclient 基于php实现的客户端驱动,代码实现

madserver 基于php实现的消息队列订阅者,代码实现

$ ./yaf-lib/bin/madserver

msg协议 基于php实现的简单消息协议,代码实现

kvmsg协议 基于php实现的简单key-value消息协议,代码实现

madzmq's People

Contributors

rryqszq4 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

anvycn guoyu07

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.