Introduction
Kafka splits data into parts called partitions to spread the load. Partition assignment decides which server handles which part, so data is balanced and easy to find.
When you add new servers to your Kafka cluster and want to balance the data load.
When you want to control which server processes which part of your topic for better performance.
When you need to understand how Kafka distributes data to troubleshoot slow consumers.
When you want to manually assign partitions to specific consumers in a consumer group.
When you want to optimize data locality by assigning partitions based on server location.