Spring for Apache Kafka Skip to main content Learn more about Day 0 access to security patches via Enterprise support. Why Spring Overview Trending Generative AI Cloud Architecture Patterns Microservices Reactive Event Driven Application Types Web Applications Serverless Batch Learn Getting Started Quickstart Guides Academy Courses Get Certified Projects Overview Projects Spring Boot Spring Framework Spring Cloud Spring AI Spring Data Spring Integration Spring Batch Spring Security Foundational Projects Micrometer Reactor Development Tools Spring Tools Spring Initializr Resources Blog Release Calendar Version Mappings Release Highlights Security Advisories GitHub Orgs Spring Projects Spring Cloud Community Overview Events Authors Enterprise Overview Long-term Support Automated Upgrades Governance and Compliance Modern App Development All projects Micrometer Micrometer Context Propagation Micrometer Tracing Project Reactor Reactor Core Reactor Netty Spring Boot Spring Framework Spring Data Spring Cloud Spring AI Spring gRPC Spring Security Spring Authorization Server Spring for GraphQL Spring Session Spring Integration Spring HATEOAS Spring Modulith Spring REST Docs Spring Batch Spring AMQP Spring CredHub Spring for Apache Kafka Spring LDAP Spring for Apache Pulsar Spring Shell Spring Vault Spring Web Flow Spring Web Services Spring for Apache Kafka4.1.0 Overview Learn Support Samples The Spring for Apache Kafka (spring-kafka) project applies core Spring concepts to the development of Kafka-based messaging solutions. It provides a "template" as a high-level abstraction for sending messages. It also provides support for Message-driven POJOs with @KafkaListener annotations and a "listener container". These libraries promote the use of dependency injection and declarative. In all of these cases, you will see similarities to the JMS support in the Spring Framework and RabbitMQ support in Spring AMQP. Features KafkaTemplate KafkaMessageListenerContainer @KafkaListener KafkaTransactionManager Retryable Topics spring-kafka-test jar with embedded kafka server Kafka Client and Spring Boot Compatibility Use the support tab above for information about supported versions. Spring for Apache Kafka is based on the pure java kafka-clients jar. The following is the compatibility matrix: Spring for Apache Kafka Version Spring Integration for Apache Kafka Version kafka-clients Spring Boot 4.0.x 7.0.x 4.1.2 4.0.x 3.3.x 6.4.x 3.8.0 to 3.9.0 3.4.x 3.2.x 6.3.x 3.7.0 3.3.x 3.1.x 6.2.x 3.6.0 3.2.x 3.0.x 6.0.x/6.1.x 3.3.2 to 3.6.0 3.0.x/3.1.x IMPORTANT: This matrix is client compatibility; for a complete discussion about client/broker compatibility, see the Kafka Compatibility Matrix To override Apache Kafka client versions, see Override Spring Boot Dependencies. Spring Boot Supported Versions. Spring Boot Config Spring Boot Support for Spring for Apache Kafka Quickstart Your Project Bootstrap your application with Spring Initializr. Get ahead VMware offers training and certification to turbo-charge your progress.Learn moreGet support Tanzu Spring offers support and binaries for OpenJDK™, Spring, and Apache Tomcat® in one simple subscription.Learn moreUpcoming events Check out all the upcoming events in the Spring community.View all Why Spring Generative AI Microservices Reactive Event Driven Cloud Web Applications Serverless Batch Learn Quickstart Guides Courses Get Certified Projects Resources Blog Release Calendar Version Mappings Release Highlights Security Advisories Community Events Authors Enterprise Long-term Support Automated Upgrades Governance and Compliance Modern App Development Thank You Get the Spring newsletter Stay connected with the Spring newsletter Subscribe Copyright © 2005 - 2026 Broadcom. All Rights Reserved. The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries. Terms of Use • Privacy • Trademark Guidelines Apache®, Apache Tomcat®, Apache Kafka®, Apache Cassandra™, and Apache Geode™ are trademarks or registered trademarks of the Apache Software Foundation in the United States and/or other countries. Java™, Java™ SE, Java™ EE, and OpenJDK™ are trademarks of Oracle and/or its affiliates. Kubernetes® is a registered trademark of the Linux Foundation in the United States and other countries. Linux® is the registered trademark of Linus Torvalds in the United States and other countries. Windows® and Microsoft® Azure are registered trademarks of Microsoft Corporation. “AWS” and “Amazon Web Services” are trademarks or registered trademarks of Amazon.com Inc. or its affiliates. All other trademarks and copyrights are property of their respective owners and are only mentioned for informative purposes. Other names may be trademarks of their respective owners.