Engineering utilities
KBY Engineering Utilities
Kafka / Event Stream Partition Calculator
Calculate the theoretical partition minimum for a throughput target using benchmarked per-partition producer and consumer rates.
Accuracy contract: The max(target/producer, target/consumer) arithmetic is deterministic, but it is only a throughput lower bound and depends on representative benchmarks.
Inputs
Defined calculation contract
Exact output
Calculation result
500 MB/s
Target throughput
50 MB/s
Producer speed
20 MB/s
Consumer speed
10
Min partitions (Producer)
25
Min partitions (Consumer)
25
Throughput minimum
Planning result
The throughput formula gives a minimum of 25 partitions for the supplied 500 MB/s target. It is not a complete topic-sizing recommendation.
Use benchmarked per-partition producer and consumer rates. Then separately check key skew, ordering requirements, consumer-group concurrency, replication, broker limits, failure recovery, and expected growth before choosing the final count.
Versioned sources
Deterministic v2026.08.1 — Advanced · 2 min