Giter Club home page Giter Club logo

zccp's Introduction

ZCCP - ZeroMQ Command & Control Protocol

ZCCP is an system designed for monitoring and controlling a large network of devices. An example use case is monitoring of a data center for power consumption, network congestion, virtual machine overload, and so on.

ZCCP does three main things:

  • It collects notifications from a set of producers, and it relays these notifications to a set of consumers.
  • It routes control commands, and their responses, to and from peers in the network.
  • It provides easy integration of user application code into this network.

ZCCP is a broker-based design, where all traffic flows through a single broker which manages subscriptions and request-reply delivery.

In the typical use case, we have device drivers hand-written for various kinds of hardware. These drivers use the ZCCP protocol to talk to the broker. We then have client applications that receive these notifications, selectively. Finally, these applications can take action by sending control commands to individual devices, or to groups of devices.

ZCCP is language and payload neutral, so device drivers and applications can be written in any language.

Features:

  • Includes client APIs in C, Java, and Go.
  • ZCCP broker is written in C, using ZeroMQ zproto framework.

Building

First, install libzmq and CZMQ from GitHub.

Then, build the broker and shell client:

gcc -g -o zccpd zccpd.c zccp_msg.c zccp_server.c -lczmq -lzmq
gcc -g -o zccp_sh zccp_sh.c zccp_msg.c zccp_server.c zccp_client.c -lczmq -lzmq

Known Problems

  • Project needs real packaging (makefiles, etc.) to build libzccp.

  • Subscription implementation in zccp_server is not fast, nor compact. It will also send messages multiple times, if clients have multiple matching subscriptions.

  • Request-reply message flow has not been developed yet. It could be implemented today using the pub-sub mechanisms.

zccp's People

Contributors

hintjens avatar

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.