This visual execution shows how Kafka's producer decides which partition to send a message to. First, it checks if the message has a key. If yes, it computes a hash of the key and uses modulo with the number of partitions to find the partition number. This ensures messages with the same key always go to the same partition. If there is no key, the producer uses a round-robin or default partitioner to distribute messages evenly across partitions. The partition number is always between zero and one less than the total partitions. The execution table traces these steps with example values, and the variable tracker shows how key, hash, and partition variables change. Key moments clarify common confusions about hashing, no-key messages, and partition number limits. The quiz tests understanding of partition calculation and behavior changes when partitions count changes.