1
votes

In the documentation of Spring Cloud Bus (https://github.com/spring-cloud/spring-cloud-bus) it was mentioned like

The Bus starters cover Rabbit and Kafka, because those are the two most common implementations, but Spring Cloud Stream is quite flexible and binder will work combined with spring-cloud-bus.

In my project we can not maintain an another infrastructure for Rabbit or Kafka hence I want to use spring-cloud-stream-binder-aws-kinesis (https://github.com/spring-cloud/spring-cloud-stream-binder-aws-kinesis) with spring-cloud-bus. Can anyone guide me how can I do that??

1
include spring-cloud-bus and the aws kinesis binder, have you tried that?spencergibb
@spencergibb That is what I want to do, but I am not sure how to include spring-cloud-bus and the AWS kinesis binder. Is there any guide or documentation to customize spring cloud bus with any other spring cloud stream implementation like this??utpal416
See my answer...Artem Bilan
Let me try that @ArtemBilan..thanksutpal416
Somewhere the next year. We are not going to release until stable Spring Cloud AWS 2.0 and Spring Cloud Stream 2.0Artem Bilan

1 Answers

1
votes

See https://github.com/spring-cloud/spring-cloud-bus/blob/master/spring-cloud-starter-bus-amqp/pom.xml:

<dependencies>
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-stream-rabbit</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-bus</artifactId>
        </dependency>
</dependencies>

I guess the same way we can follow for Kinesis Binder:

<dependencies>
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-stream-binder-kinesis</artifactId>
            <version>1.1.0.RELEASE</version>
        </dependency>
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-bus</artifactId>
        </dependency>
</dependencies>