vuza

vuza/murmur2-partitioner

This JS-script calculates the partition based on a key and the amount of partitions for a JS Kafka producer in way consistent to the default Java Kafka client

JavaScript
2
0
No license

**Summary** The `murmur2-partitioner` package is a lightweight JavaScript utility that computes a deterministic partition index for a given key and a configurable number of Kafka partitions, mirroring the behavior of the default Java Apache Kafka client’s hash partitioning (using MurmurHash2). It is intended for developers building Node.js Kafka producers who need a partition‑selection strategy that is identical to the Java client’s default, ensuring consistent topic routing across language ecosystems.

Total donated
Undistributed
Share with your subscribers: