Spring Cloud Stream Reactive-对于反应流管道,哪种kafka-binder是合适的?

时间:2018-11-22 17:18:12

标签: spring-cloud-stream spring-kafka

我们在Kafka中使用了反应性春季云流。关于使用正确的粘合剂的任何建议?哪一个最适合反应性管道?

  1. spring-cloud-stream-binder-kafka
  2. spring-cloud-stream-binder-kafka-streams

很显然,我们很乐意并希望得到 reactive-kafka-binder 。由于我们所有的端到端应用程序(源,处理器和接收器)都建立在反应流管道上。

  

反应性卡夫卡将是最合适的,因为我们将整个管道用作反应性。使端到端管道具有反应性。有什么计划在春季提供这种反应性卡夫卡粘合剂?

为简单起见,目前,我们将反应性春季云流 spring-cloud-stream-binder-kafka 非kafka-streams一起使用。期待您的回答。非常感谢!

1 个答案:

答案 0 :(得分:0)

您使用了正确的依赖项 - spring-cloud-stream-binder-kafka

不过,我建议使用来自 spring-cloud-starter-stream-kafka / spring-cloud-stream-dependencies pom 的 spring-cloud-dependencies-parent 依赖项。

    <dependencyManagement>

        <dependencies>

            <dependency>
                <groupId>org.springframework.cloud</groupId>
                <artifactId>spring-cloud-dependencies</artifactId>
                <version>${spring.cloud-version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>

        </dependencies>

    </dependencyManagement>
    <dependencies>

        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-stream-kafka</artifactId>
        </dependency>

    </dependencies>
相关问题