npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

node-red-contrib-kafka-manager

v0.6.2

Published

Node-RED implements Kafka manager with associand associated .

Downloads

623

Readme

node-red-contrib-kafka-manager

Node Red for working with apache kafka, a streaming product. First initial release using kafka-node .

  • Kafka Broker
  • Kafka Admin
  • Kafka Commit
  • Kafka Consumer
  • Kafka ConsumerGroup
  • Kafka Offset
  • Kafka Producer
  • Kafka Rollback

Has a test GUI which allows topics to be added.

Special features:

  • Generic topic(s) for a consumer using regex which dynamically adds new topics as they are defined
  • For consumer add/remove topics (not persisted)
  • Convert "/" to "." to assist with interfaces to other queueing technologies

Note: all nodes run in debug mode for 111 messages then turns off.


Kafka Broker

Defines the client interface to kafka. One can add process.env for hosts with

process.env.atesthosts='[{"host":"atesthost1","port":1234},{"host":"atesthost2","port":4321}]';

in settings.js

Kafka Broker Kafka Broker Options


Kafka Admin

Provide the ability to process administration tasks such as create and list topic.

Following topics commnads or via GUI allowed:

  • describeCluster
  • describeDelegationToken
  • describeReplicaLogDirs
  • listConsumerGroups
  • listGroups
  • listTopics

Plus following topics commands allowed where paramaters are payload:

  • alterConfigs, alterReplicaLogDirs, createAcls,createDelegationToke
  • createPartitions, createTopics, deleteAcls, deleteConsumerGroups, deleteRecords
  • deleteTopics, describeAcls, describeConsumerGroups, describeGroups, describeLogDirs, describeTopics * electPreferredLeaders, expireDelegationToken, incrementalAlterConfigs, listConsumerGroupOffsets, renewDelegationToken

Admin


Kafka Commit

If msg._kafka exists and the consumer associated with the message is not on autocommit, it issues commit for the consumer that had produced the message. Sends to OK or Error port depending on state. Note, as Kakfa keeps giving messages to consumer regardless if commit being outstanding, the commit may commit many in-flight messages. Haven't identified a method of readily preventing this behavour without complications.


Kafka Consumer

Consumer of topic messages in kafka which are generated into node-red message. Provides types of base and high level. If wildcard selected then topics are regex patterns which are dynamically made active (or removed) when available. A check is performed once every minute for chanaes to topics.

Kafka Consumer Kafka Consumer Options Kafka Consumer Fetch Kafka Consumer Encoding

Kafka Consumer Group

Consumer of topic messages in kafka which are generated into node-red message.

Kafka Consumer Group Kafka Consumer Group Options


Kafka Offset

Get various offsets from Kafka. Which type are set via msg.action or msg.topic. msg.payload states the types of options.

Kafka Offset


Kafka Producer

Converts a node-red message into a kafka messages. Provides types of base and high level.

Kafka Producer


Kafka Rollback

If msg._kafka exists and the consumer associated with the message is not on autocommit, it closes the consumer. This effectively rolls back the message in Kafka plus ensures the message cannot be automatically handed to the the consumer. It is expected that the message or problem is fixed and the consumer opened again for processing.


Simple Web Admin Panel

Simple Web page monitor and admin panel

Web


Install

Run the following command in the root directory of your Node-RED install or via GUI install

npm install node-red-contrib-kafka-manager

Tests

Test/example flow in test/generalTest.json

Tests


Version

0.6.1 Major change in compression and add deadletter q

0.5.0 add consumer wildcard topics + topics / to . along with fix on to/from/json

Author

Peter Prib