Spring for Apache Kafka 2.4.4

springforapachekafka (Spring Kafka) project will be based on Kafka core Spring concepts to develop messaging solutions. It provides a "template" as a high-level abstraction to send a message. It also supports message with @KafkaListener comments and "listener container" drive pojo. These libraries promote dependency injection and declarative use. In all these cases, you will see the similarities with the Spring Framework and JMS support RabbitMQ support of the Spring AMQP.
Feature
Kafka template
Kafka Music Festival Moderator
@ activists Kafka
Kafka travel managers
embedded server spring-kafka kafka test JAR
Kafka used to live client compatibility
ApacheKafka the Spring jar based on pure JavaKafka client. The following is a compatibility matrix:
ApacheKafka version Spring
ApacheKafka version Spring integration
Kafka customer
2.4 times
3.3.x Article
2.4.0 Article
2.3 times
3.2 times
2.3.1 Article
2.2 times
3.1 times
2.0.1,2.1.x, 2.2 .x
1.3 times
2.3 times
0.11.0.x, 1.0.x
Important: This matrix is client compatibility; (from the beginning of 0.10.2.0), the newer client can communicate with older agents in most cases. All agents> = 0.10.xx users (as well as all spring boot 1.5.x users) are recommended for spring kafka 1.3.x or later, because KIP-62 provides a simpler threading model. About client / agent complete discussion of compatibility, see Kafka compatibility matrix
versions prior to 2.0 Spring Integration Kafka Kafka earlier than the Spring for Apache project, and therefore is not based on it.
When using maven or gradle version management, these versions will be passed by reference. For the 1.1.x version, 0.10.1.x is the default.
By default, 2.1.x using 1.1.x kafka client. When is 2.1.x rewrite kafka client, see the documentation appendix.
By default, 2.2.x using 2.0.x kafka client. When is 2.2.x rewrite kafka client, see the documentation appendix.
SpringBoot1.5 1.3.x users should use (by default, the guide will be used 1.1.x dependency management, so it should cover).
SpringBoot2.1 users should use 2.2.x (guide dependency management will use the correct version).
SpringBoot2.2 users should use 2.3.x (guide dependency management will use the correct version).
Spring shoe arrangement
ApacheKafka guided automatic configuration of Spring
spring initializer
Quick Start program
guide application using Spring initializer.

Original articles published 0 · won praise 135 · Views 4905

Guess you like

Origin blog.csdn.net/blog_programb/article/details/105156063