kafka

ZooKeeper is gone

ZooKeeper is gone

Apache Kafka 4.0 was announced on the eighteenth of March. KRaft is now the only way to manage metadata, and ZooKeeper support has been removed entirely.

I've written about this twice already, when KRaft was marked production ready for new clusters in December 2022, and when the bridge release arrived in August 2023. So this is the end of a plan I have been reading release notes about for two and a half years, and mostly I want to write down that the plan finished.

The schedule, as promised and as delivered

The 2022 KIP said KRaft would be production ready for new clusters, that a bridge release would follow, that ZooKeeper would be deprecated, and that removal would happen in 4.0.

And that's what happened. Production ready in 3.3. Migration in early access in 3.5, alongside the deprecation. General availability of the migration in 3.6. 3.9 as the last version that can perform it. Removal in 4.0.

A cluster still on ZooKeeper today can't upgrade to 4.0 directly. It has to migrate on 3.9 first, and then upgrade. That constraint has a deadline attached, and it has been visible for years.

I'm dwelling on this because it normally goes differently. Most deprecations are announced, then extended, then extended again, then carried indefinitely because removing them would break someone who never moved. The compatibility shim becomes permanent and the codebase keeps two paths forever. That was the original argument for removing dockershim, and the reason that removal also had to happen and not just be promised.

Kafka published a schedule with version numbers, kept it, and shipped the removal. I think that's unusual enough to notice.

Ready early, reversible, published

What it took applies outside Kafka too.

The replacement was ready first, and separately. KRaft was production ready two and a half years before ZooKeeper was removed, so no one was ever asked to migrate to something unfinished.

It was also reversible while it ran. The dual-write mode kept ZooKeeper current during the transition, so an operator could abandon a migration in progress and didn't have to be certain in advance. I think people hold off on a migration more because there is no way back than because of the effort.

And the timeline was long and published. Two and a half years from "you can choose this" to "you have no choice" is enough for an organisation to fit the work into a normal quarter instead of an emergency.

One system to operate

For anyone running Kafka, there is one system to operate now instead of two. No ZooKeeper ensemble with its own quorum arithmetic, version matrix, monitoring and place in the runbook.

The scaling property from the original change still seems to me the most important one. Controller failover used to require loading metadata out of ZooKeeper, so recovery time grew with partition count (the more you used Kafka, the worse it recovered). With metadata as a replicated log with offsets, a new controller starts from what the quorum already has.

4.0 also drops Java 8 and includes early access to queue semantics on top of topics. That's a different discussion, and I'll leave it alone until it is not early access.

Why I followed it

I still don't run Kafka in production. I have followed this for two and a half years because it was a well-documented example of something I do have to do, which is remove a dependency from a system that can't stop.

The idea at the centre of it was that Kafka's metadata problem looked like state synchronisation until someone modelled it as a log, and then it became something the project already knew how to do well. But it's the execution around it that I would copy. Ship the replacement early, keep the old path alive while people move, give them a way back, publish the date, and then honour it.

It isn't technically difficult. It does mean choosing to carry two implementations for two years, so that the removal at the end is uneventful.

Deyan Peev

Founding Engineer in Sofia, Bulgaria. Currently at 1club.

© 2026 Deyan Peev