Spring for Apache Kafka

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.

Quick Start
Fork me on GitHub

Features

  • KafkaTemplate
  • KafkaMessageListenerContainer
  • @KafkaListener
  • spring-kafka-test jar with embedded kafka server

Quick Start

Download

The recommended way to get started using spring-kafka in your project is with a dependency management system – the snippet below can be copied and pasted into your build. Need help? See our getting started guides on building with Maven and Gradle.

Sample Projects

Getting Started Guides

Tutorials