How many partitions does a Kafka topic need?
Sizing partitions from target throughput and consumer parallelism: per-partition throughput, ordering by key, the cost of too many partitions on brokers and OS limits, and why partitions can be added but not removed.

