Can I use "spring-cloud-stream-binder-kafka", "spring-cloud-stream-binder-kafka-streams" and "spring-cloud-stream-binder-rabbit" in SpringBoot?

I'm learning Spring Cloud Streams and managed to create a multi-binder Spring Boot project that combines both Kafka and Rabbit:

              <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-stream-binder-rabbit</artifactId>
        </dependency>

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

Now I want to add kafka-streams binder too:

      <dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-stream-binder-kafka-streams</artifactId>
</dependency>
  1. Is that possible ?
  2. If so, none of the examples here have one combining (a) kafka and (b) kafka-streams, do you know of an example showing the configuration using both ?
  3. If not possible to combine (a) and (b), is it possible to combine (b) kafka-streams and (c) rabbit ?
  4. If so, do you know of an example for the configuration of #3 ?

0 ответов