Spring for Apache Kafka 4.0.0-M2, and 3.3.5 are Available Now

Releases | Soby Chacko | April 23, 2025 | ...

We are pleased to announce the second milestone release of Spring for Apache Kafka 4.0.x generation - 4.0.0-M2, which now supports Apache Kafka 4.0.0.

Key Changes in 4.0.0-M2

  • The Kafka client in 4.0.0-M2 has been updated to 4.0.0
  • All ZooKeeper related support is now dropped from the 4.0.0-M2, since Apache Kafka 4.0.0 has completely removed ZooKeeper dependency and now exclusively uses KRaft for leadership election and quorum management
  • The EmbeddedKafkaBroker utility that Spring for Apache Kafka provides for testing purposes will no longer work with ZooKeeper, as it only supports the KRaft protocol
  • We also verified that the next generation consumer rebalance protocol introduced via KIP-848 works seamlessly via Spring for Apache Kafka 4.0.0-M2

In addition to the 4.0.0-M2 release, we are also happy to release the next point GA versions for Spring for Apache Kafka 3.3.5.

We extend our gratitude to all contributors who made these releases possible.

Release Notes

See the release notes for more details on what's included in these releases:

https://github.com/spring-projects/spring-kafka/releases/tag/v4.0.0-M2

https://github.com/spring-projects/spring-kafka/releases/tag/v3.3.5

Kafka Client Compatibility

Kafka Client 4.0.0

To use Kafka client 4.0.0 in Spring for Apache Kafka, you must upgrade to the version 4.0.0-M2, since this is a major upgrade.

Kafka Client 3.9.0 compatibility

Spring for Apache Kafka version 3.3.5 is compatible with Kafka Client 3.9.0, though the framework's compile-time dependency remains Kafka Client 3.8.1. To use Kafka Client 3.9.0 or later with version 3.3.5, applications must manually upgrade their Kafka Client version.

For instructions on overriding Kafka Client versions in Spring Boot, please see this guide.

Spring Boot Integration

The 3.3.5 release will be integrated into the upcoming Spring Boot 3.4.5 and 3.5.0-RC1 releases.

Staying in Touch with the Project

We encourage the community to provide us with any feedback on any of these releases.

The following are the usual avenues where you can engage with the project.

GitHub | Issues | Documentation | Stack Overflow

Get the Spring newsletter

Stay connected with the Spring newsletter

Subscribe

Get ahead

VMware offers training and certification to turbo-charge your progress.

Learn more

Get support

Tanzu Spring offers support and binaries for OpenJDK™, Spring, and Apache Tomcat® in one simple subscription.

Learn more

Upcoming events

Check out all the upcoming events in the Spring community.

View all