Node Rdkafka Promise
The high-level node kafka client with Promise support .
Usage
Install
npm i node-rdkafka-promise -S
Kafka Producer
const producer = 'client.id': 'kafka' 'metadata.broker.list': 'localhost:9092' 'compression.codec': 'gzip' 'retry.backoff.ms': 200 'message.send.max.retries': 10 'socket.keepalive.enable': true 'queue.buffering.max.messages': 100000 'queue.buffering.max.ms': 1000 'batch.num.messages': 1000000 'dr_cb': true {} producer
Kafka Consumer
const consumer = 'group.id': 'kafka' 'metadata.broker.list': 'localhost:9092' consumer