Skip to content

librdkafka wrapper for node.js very fast but beta and needs improvements

License

Unknown and 3 other licenses found

Licenses found

Unknown
LICENSE
Unknown
LICENSE.librdkafka
Unknown
LICENSE.pycrc
Unknown
LICENSE.snappy
Notifications You must be signed in to change notification settings

redsand/node-kafka

Repository files navigation

node-kafka

Node.js binding for librdkafka.

BUILD

Configure

node-gyp configure

Initial build

node-gyp build

Rebuild

node-gyp rebuild

EXAMPLE

var kafka = require("./lib/kafka");

var producer = new kafka.Producer({
  zookeeper: "localhost:2181",
  partition: 0,
  topic: "test"
});

producer.connect(function() {
  producer.send('message', function(err) {
    ...
  }).on("sent", function(err) {
    ...
  }).on("delivery", function(err, length) {
    ...
  }).on("error", function(err) {
    ...
  });
})

Please see examples directory for more. This project needs more testing and further direction.

TEST

node example.js
node example2.js

LICENSE

See LICENSE, and LICENSE.* for dependencies

About

librdkafka wrapper for node.js very fast but beta and needs improvements

Resources

License

Unknown and 3 other licenses found

Licenses found

Unknown
LICENSE
Unknown
LICENSE.librdkafka
Unknown
LICENSE.pycrc
Unknown
LICENSE.snappy

Stars

Watchers

Forks

Releases

No releases published

Packages