Spring Kafka 1.1.3-SNAPSHOT 与 Kafka 0.10.1.1 的兼容性

Spring Kafka 1.1.3-SNAPSHOT's compatibility with Kafka 0.10.1.1

我是 Kafka 的新手,我想使用支持流式传输的最新版本 (0.10.1.1)。我也想使用 Spring Kafka。

我不明白版本兼容性Spring Kafka 在其文档中说:

这 link 表示 Apache Kafka 0.10.x.x 客户端

http://docs.spring.io/spring-kafka/docs/1.1.3.BUILD-SNAPSHOT/reference/html/whats-new-part.html

这个 link 说:Apache Kafka 0.9.0.1

http://docs.spring.io/spring-kafka/docs/1.1.3.BUILD-SNAPSHOT/reference/html/_introduction.html

这意味着支持的最高版本确实是 0 的最新版本。10.x.x。

但它仍然与 Apache Kafka 0.9.0.1 兼容。

你能拥有的最好的是来自 Spring Kafka 的传递依赖:

<dependency>
  <groupId>org.apache.kafka</groupId>
  <artifactId>kafka-clients</artifactId>
  <version>0.10.1.1</version>
  <scope>compile</scope>
  <exclusions>
    <exclusion>
      <artifactId>slf4j-api</artifactId>
      <groupId>org.slf4j</groupId>
    </exclusion>
  </exclusions>
</dependency>

顺便说一句:https://spring.io/blog/2017/02/06/spring-for-apache-kafka-1-1-3-available-now