Yandex Cloud
Search
Contact UsGet started
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • AI for business
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
© 2025 Direct Cursus Technology L.L.C.
Yandex Managed Service for Apache Kafka®
  • Getting started
    • Resource relationships
    • Topics and partitions
    • Brokers
    • KRaft protocol
    • Producers and consumers
    • User roles
    • Managing data schemas
    • Web interface for Apache Kafka®
    • APIs in Managed Service for Apache Kafka®
    • Host classes
    • High availability clusters
    • Networking in Managed Service for Apache Kafka®
    • Quotas and limits
    • Storage in Managed Service for Apache Kafka®
    • Connectors
    • Maintenance
    • Apache Kafka® settings
    • Apache Kafka® versioning policy
  • Access management
  • Pricing policy
  • Terraform reference
  • Yandex Monitoring metrics
  • Audit Trails events
  • Public materials
  • Release notes
  • FAQ

In this article:

  • Managed Service for Apache Kafka® cluster topology
  • Apache Kafka® Raft pros and cons
  1. Concepts
  2. KRaft protocol

Apache Kafka® Raft protocol in Managed Service for Apache Kafka® clusters

Written by
Yandex Cloud
Updated at October 20, 2025
  • Managed Service for Apache Kafka® cluster topology
  • Apache Kafka® Raft pros and cons

Apache Kafka® Raft (short name: KRaft) is an approval protocol allowing you to store metadata and manage it in Apache Kafka®. KRaft makes Apache Kafka® independent of the external metadata synchronization service, ZooKeeper.

KRaft is supported by Managed Service for Apache Kafka® clusters with Apache Kafka® 3.6 or higher.

ZooKeeper is supported by clusters with Apache Kafka® 3.9 or lower.

Note

ZooKeeper support will be discontinued starting from Apache Kafka® 4.0, thus requiring the switch from ZooKeeper to KRaft.

Managed Service for Apache Kafka® cluster topologyManaged Service for Apache Kafka® cluster topology

KRaft is automatically configured and placed in a cluster based on the selected mode and the number of broker hosts:

  • KRaft (combined mode): One Apache Kafka® host accommodates a broker and a KRaft metadata controller at the same time. In the cluster, only three Apache Kafka® hosts get created in one of these configurations:

    • Three hosts in the same availability zone.
    • Each host in a separate availability zone.

    You cannot set the number of broker hosts manually.

  • KRaft (on separate hosts): A broker and a KRaft metadata controller are on separate hosts. When you create a multiple-host cluster, three dedicated KRaft hosts are added to it.

    The number of broker hosts is set manually.

You cannot delete KRaft hosts. The number of KRaft hosts is fixed.

For more information on creating a Managed Service for Apache Kafka® cluster with KRaft, see this guide.

Apache Kafka® Raft pros and consApache Kafka® Raft pros and cons

KRaft advantages stem from the fact that Apache Kafka® no longer depends on the ZooKeeper external system:

  • There is a single mechanism in place for information security instead of multiple ones.
  • A cluster with KRaft is easier to manage, as it has no ZooKeeper hosts.
  • The cluster becomes more fault-tolerant and recovers almost instantly in case of a failure.
  • You can create a greater number of partitions within the cluster.

For more information, see the Confluent website and documentation.

KRaft cons arise from the cluster topology specifics:

  • In the combined mode, KRaft metadata controllers are not isolated from Apache Kafka® as effectively as they are in split mode, which features a dedicated subcluster for metadata controllers. Therefore, Apache Kafka® does not recommend using the combined mode in critical development environments. The combined mode is more suitable for local development and testing.
  • In a cluster with KRaft, you cannot flexibly manage the number of hosts: you can have exactly three hosts.

Was the article helpful?

Previous
Brokers
Next
Producers and consumers
© 2025 Direct Cursus Technology L.L.C.