Skip to content

thiko/kafka-partition-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Kafka Partition Calculator

A simple web tool to calculate the target partition for Kafka message keys using the murmur2 algorithm.

Live Demo

https://thiko.github.io/kafka-partition-calculator

Usage

  1. Enter your message key (e.g., "user123", "order-456")
  2. Enter the number of partitions
  3. View the calculated target partition

Running Locally

Open index.html in any web browser. No build process required.

Algorithm

Uses the same logic as the java clients BuiltInPartitioner:

partition = toPositive(murmur2(messageKey)) % partitionCount

Features

  • Real-time calculation
  • Murmur2 hash (same as Kafka)
  • Responsive design
  • No dependencies

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages