Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 323 Bytes

README.md

File metadata and controls

14 lines (10 loc) · 323 Bytes

node-kafkaPartitioner

Kafka partition selection based on key and partitionCount

Installation

Using npm:

$ npm install --save node-kafka-partitioner

Example

let kafkaDefaultPartitioner = require('node-kafka-partitioner');
kafkaDefaultPartitioner.partition(topicName, partitionKey, partitionCount);