简体   繁体   中英

When creating a local Kafka instance for kafka-python, is it a good idea using Kafka 2.8+ that don't need Zookeeper?

In April 2021 Kafka released a version with early access to eliminating its dependency on Zookeeper. I've read many posts (mostly from 2021) saying that it was still not a good idea to use those versions on prod becasue they were too new. Every tutorial for kafka-python I've read starts with building a local Kafka instance and running Zookeeper for that. Are thos tutorials outdated when it comes to building the instance or is it still better to download older Kafka versions and continue using Zookeeper?

I have no code to show because it's more of a theoretical question.

Kafka clients newer than Kafka 0.9 have never needed to connect to Zookeeper. The brokers still require it, but that has nothing to do with Python.

Kafka 3.3.x announced Kraft mode as production ready, by the way.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM