Skip to content

AxonOps — AI-Native Control Plane for Open Source Data Platforms

Apache Kafka Documentation

Apache Kafka® is a distributed event streaming platform designed for high-throughput, fault-tolerant data pipelines. This documentation provides comprehensive coverage of Kafka architecture, operations, and best practices for production deployments.

This reference documentation covers Apache Kafka versions 2.8 through 4.3.x, with particular emphasis on KRaft-mode deployments. Kafka 4.0 (March 2025) removed ZooKeeper entirely—KRaft is now the only supported metadata management mode.

Version RangeZooKeeper ModeKRaft ModeDocumentation Status
2.8.x⚠️ Early AccessLegacy reference
3.0.x - 3.2.x⚠️ PreviewLegacy reference
3.3.x - 3.5.xSupported
3.6.x - 3.9.x⚠️ DeprecatedFully Documented
4.0.x❌ RemovedFully Documented
4.1.xFully Documented
4.2.xFully Documented
4.3.xCurrent (4.3.1)

Legend: ✅ Production Ready | ⚠️ Limited/Deprecated | ❌ Not Supported


The current release on each supported version stream:

StreamLatestReleased
4.3.x4.3.1
4.2.x4.2.0February 2026
4.1.x4.1.1November 2025
4.0.x4.0.1October 2025

Kafka 4.3.1 is a patch release for the 4.3 line, addressing RocksDB memory leaks (KAFKA-20616, KAFKA-20688), group-coordinator errors after partition leadership changes, and stale changelog offsets on restart. The 4.3.0 release (May 2026) introduced broker and log-directory cordoning, OAuth2 private_key_jwt client assertions, and header-aware Kafka Streams state stores.

For per-release highlights across the 4.3.x, 4.2.x, 4.1.x, 4.0.x, and 3.x streams, plus major-version feature summaries, see the dedicated Release Notes page.


New to Apache Kafka? Begin with installation and initial configuration.

  • Installation


    Deploy Kafka on Linux, containerized environments, or managed cloud services.

    Installation Guide

  • Client Drivers


    Configure client libraries for Java, Python, Go, and other languages.

    Driver Documentation


Understand the fundamental concepts underpinning Kafka's distributed architecture.

  • Architecture Patterns


    Event sourcing, CQRS, and streaming architectures built on Kafka.

    Architecture Patterns

  • Delivery Semantics


    At-least-once, at-most-once, and exactly-once delivery guarantees.

    Delivery Semantics

  • Data Integration


    Integrating Kafka with external systems using Connect and Streams.

    Data Integration

  • Multi-Datacenter


    Cross-datacenter replication strategies and disaster recovery.

    Multi-Datacenter


Deep dive into Kafka's internal architecture and distributed systems design.

  • Topics & Partitions


    Topics, partitions, partition leaders, ISR, and leader election.

    Topics & Partitions

  • Brokers


    Broker architecture, request handling, and controller responsibilities.

    Broker Architecture

  • Topology


    Cluster topology, rack awareness, and network configuration.

    Cluster Topology

  • Storage Engine


    Log segments, compaction, and retention policies.

    Storage Engine

  • Replication


    Partition replication, ISR management, and leader election.

    Replication

  • Fault Tolerance


    Failure detection, recovery mechanisms, and high availability.

    Fault Tolerance

  • Transaction Coordinator


    Exactly-once semantics, producer IDs, and two-phase commit.

    Transactions


Configuration and best practices for Kafka clients.

  • Producers


    Producer configuration, batching, compression, and delivery guarantees.

    Producer Guide

  • Consumers


    Consumer groups, offset management, and rebalancing strategies.

    Consumer Guide


Build real-time stream processing applications.

  • Kafka Connect


    Source and sink connectors for data integration pipelines.

    Kafka Connect

  • Kafka Streams


    Stream processing DSL for stateful transformations.

    Kafka Streams

  • Schema Registry


    Schema management for Avro, Protobuf, and JSON Schema.

    Schema Registry


Production deployment, monitoring, and maintenance procedures.

  • CLI Tools


    Command-line tools for cluster administration and troubleshooting.

    CLI Reference

  • Configuration


    Broker, producer, and consumer configuration reference.

    Configuration Guide

  • Monitoring


    JMX metrics, health checks, and alerting strategies.

    Monitoring Guide

  • Backup & Restore


    Data backup strategies and disaster recovery procedures.

    Backup & Restore

  • Maintenance


    Rolling upgrades, partition reassignment, and cluster expansion.

    Maintenance

  • Performance Tuning


    Throughput optimization, latency tuning, and capacity planning.

    Performance


Authentication, authorization, and encryption for Kafka deployments.

  • Authentication


    SASL/SCRAM, SASL/GSSAPI (Kerberos), and mTLS authentication.

    Authentication

  • Authorization


    ACL-based authorization and role-based access control.

    Authorization

  • Encryption


    TLS/SSL encryption for data in transit.

    Encryption


Deploy Kafka on cloud platforms and container orchestration systems.


Diagnostic procedures and solutions for common issues.

  • Common Errors


    Error codes, root causes, and resolution procedures.

    Error Reference

  • Diagnosis


    Diagnostic procedures for cluster issues.

    Diagnosis Guide

  • Log Analysis


    Log patterns, analysis techniques, and monitoring.

    Log Analysis


  • Reference


    Configuration reference, CLI commands, and metrics catalog.

    Quick Reference

  • Migration


    ZooKeeper to KRaft migration and version upgrade guides.

    Migration Guide


This documentation follows Apache Kafka's semantic versioning. Behavioral differences between versions are explicitly noted throughout.

MilestoneVersionDateStatus
KRaft Early Access2.8.0April 2021Development only
KRaft Preview3.0.0 - 3.2.xSept 2021 - May 2022Testing environments
KRaft Production Ready3.3.0October 2022General availability
ZooKeeper Deprecated3.6.0October 2023Migration recommended
Dynamic KRaft Quorum3.9.0November 2024Add/remove controllers
ZooKeeper Removed4.0.0March 2025KRaft required
Streams Rebalance Protocol GA4.2.0February 2026Server-side rebalancing
Previous Release4.3.0May 2026Broker cordoning, OAuth private_key_jwt
Current Release4.3.1Latest stable (patch)

Kafka 4.0+ Migration Path

Kafka 4.0 does not support ZooKeeper mode. To upgrade:

  1. If on Kafka < 3.3: Upgrade to 3.9.x first
  2. Migrate from ZooKeeper to KRaft mode
  3. Then upgrade to Kafka 4.0+

Direct upgrade from ZooKeeper mode to 4.0 is not possible.

Documentation Conventions

This documentation uses RFC 2119 terminology (must, should, may) to indicate requirement levels. Version-specific behaviors are explicitly noted with the applicable Kafka version range.