Introduction
Kafka uses ZooKeeper to manage cluster metadata and coordinate brokers. KRaft mode replaces ZooKeeper by embedding this coordination inside Kafka itself, simplifying setup and improving reliability.
When you want to run a Kafka cluster with external coordination using ZooKeeper.
When you want to simplify Kafka cluster management by using KRaft mode without ZooKeeper.
When setting up a new Kafka cluster and deciding between traditional ZooKeeper or KRaft mode.
When upgrading Kafka and considering migration from ZooKeeper to KRaft mode.
When troubleshooting Kafka cluster metadata or broker coordination issues.