Skip to content
Veltoryx Technologies

Kafka Partition & Consumer Group Sizer

Size Apache Kafka topic partitions based on target producer write throughput (MB/s), consumer processing latency (ms), and cluster broker distribution balance.

Runs in your browser. Nothing is uploaded.
Sample Topic Architectures:

Throughput & Cluster Parameters

Recommended Partition Count
66(22 partitions per broker on 3 brokers)

Provides symmetric distribution across your 3 Kafka brokers and supports up to 66 concurrent consumer instances in a single consumer group.

Producer Throughput1,024 msgs/secMin 1 partition(s) for write disk I/O.
Consumer Capacity40 msgs/s / consumerRequires 64 partitions to sustain drain rate.

How to use this tool

1
Input target throughput and message size

Specify expected MB/s producer volume and average message payload size.

2
Set consumer processing latency and broker count

Enter how long single consumer threads take to process 1 record and the number of brokers in your Kafka cluster.

3
Review recommended partitions

Get the mathematically optimal partition count aligned to broker multiples to prevent rebalance penalties and unconsumed lag.

Frequently Asked Questions

Can a Kafka topic have more consumers than partitions?

No. In Apache Kafka, each partition within a topic can only be assigned to at most one consumer instance within a consumer group. Extra consumers remain idle.

Why not create 10,000 partitions for every topic?

Over-partitioning causes excessive open file handles, increases end-to-end commit latency, increases memory usage on brokers, and extends leader election time during broker restarts.

Why should partition count be a multiple of broker count?

Even multiples (e.g. 12 partitions on 4 brokers = 3 partitions per broker) ensure balanced disk I/O, network bandwidth, and CPU utilization across all nodes.

What is the lag drain multiplier?

After an outage or deployment, consumers must process current incoming traffic PLUS drain the accumulated backlog. Sizing partitions for 2x to 3x peak throughput allows swift lag recovery.

📖 Related Lessons on Veltoryx Learn

Deepen your architecture knowledge with practical, production-tested guides:

Client-Side Privacy Guarantee

This tool never transmits your payloads to any server. Open DevTools (F12) → Network tab to verify that zero HTTP requests are sent while using this page.

🛡 Safe for confidential enterprise payloads