Xiaobing Li ae846e60dd Revert "Set keep_alive to false" (#66)
This reverts commit f71483866633ebbbec0f13ea24be584d4dd0f3c1.
2018-10-04 00:40:43 -04:00
2018-03-13 14:29:27 -07:00
2018-04-12 17:37:36 -07:00
2018-04-17 10:26:25 -07:00
2018-09-18 18:02:05 -07:00
2017-07-22 18:48:06 -07:00

node-kafka-rest-client

A rest client for producing JSON and binary messages to kafka.

Usage

var KafkaRestClient = require('kafka-rest-client');
var configs = {
    proxyHost: 'localhost',
    proxyPort: 18084
};

var kafkaRestClient = new KafkaRestClient(kafkaRestClientOptions, callback);
kafkaRestClient.connect(callback);

kafkaRestClient.produce(topicName, 'Example Kafka Message', callback);

Options

KafkaProducer constructor accepts these options:

  • proxyHost - Rest proxy hostname to produce kafka messages (default: localhost)
  • proxyPort - Rest proxy port to produce kafka messages (required)

Install

npm install kafka-rest-client

Running tests

Tests are run using npm:

npm run test

Running lint

Tests are run using npm:

npm run lint

MIT Licenced

Description
A REST client for producing messages to Kafka
Readme MIT 380 KiB
Languages
JavaScript 100%