From Kafka 3.3 KRaft is production-ready and from 4.0 ZooKeeper is gone entirely.
# KRaft: brokers elect a controller among themselves
process.roles=broker,controller
controller.quorum.voters=1@kafka1:9093,2@kafka2:9093,3@kafka3:9093
# No zookeeper.connect at all
One system to run instead of two,
faster failover, and metadata that scales to millions of partitions.
Run this yourself in the Online Java Compiler, spin up a live REST API in the API Sandbox, or practise with Java interview questions.
Published 2026-08-11