UNPKG

node-red-contrib-kafka-node

Version:

Node-RED nodes of HighLevel Kafka Producer and Consumer

48 lines (32 loc) 1.95 kB
# Kafka Node Kafka node can produce/consume the mesasges to/from kafka cluster along with topic(s) on [NodeRED](http://nodered.org). ## Install Install from [npm](http://npmjs.org) ``` npm install -g node-red-contrib-kafka-node ``` ## Prerequisites * Node-RED platform. (see [Node-RED](http://nodered.org/docs/getting-started/installation.html)) * Kafka cluster (see [Kafka](http://kafka.apache.org/documentation.html#gettingStarted)). * Some topics (see [How to create a topic](http://kafka.apache.org/documentation.html#quickstart)) ## Usage ##### Producer Node ![Alt text](https://github.com/fwang7/node-red-contrib-kafka-node/blob/screenshot/imgs/producer.jpg?raw=true "Producer Example") ###### Parameters: - ZkQuarum - <i>The ZooKeeper quorum of Kafka cluster. - Topics - <i>The topic(s) of message to produce. ##### Consumer Node ![Alt text](https://github.com/fwang7/node-red-contrib-kafka-node/blob/screenshot/imgs/consumer.jpg?raw=true "Consumer Example") ###### Parameters: - ZkQuarum - <i>The ZooKeeper quorum of Kafka cluster. - Topics - <i>The topic(s) of message to produce. - GroupId - <i> The group ID. > Group ID is a string that uniquely identifies the group of consumer processes to which this consumer belongs. By setting the same group id multiple processes indicate that they are all part of the same consumer group. ## Version 0.1.5 ## Tech * [Kafka](http://kafka.apache.org/) - Apache Kafka is publish-subscribe messaging rethought as a distributed commit log. * [Zookeeper](https://zookeeper.apache.org/) - ZooKeeper is a centralized service for maintaining configuration information, naming, providing distributed synchronization, and providing group services. * [Kafka-Node](https://www.npmjs.com/package/kafka-node) - Kafka-node is a Node.js client with Zookeeper integration for Apache Kafka 0.8.1 and later. ## Authors * Feng Wang - [desperado.wf@gmail.com](mailto:desperado.wf@gmail.com)