2

There is no official library of Apache Pulsar for Spring Cloud Stream. I found Spring for Apache Pulsar, but it is only about Spring Boot. In it's GitHub repository, there is a [spring-pulsar-spring-cloud-stream-binder], but not found in mvnrepository. So how can I use it?

Is there a good way of integrating Apache Pulsar in Spring Cloud Stream?

Mark Rotteveel
  • 100,966
  • 191
  • 140
  • 197

1 Answers1

5

The Spring Cloud Stream binder of the Spring for Apache Pulsar project has not been part of a release yet. It will most likely be part of the next release. If you can't wait, maybe you can build it from the main git branch ?

Christophe Bornet
  • 1,062
  • 8
  • 8
  • Hi, i see the project is based on Gradle which i'm not familiar with. Currently we use are using mvn. And maybe it's not a good idea to maintain a copy ourselves. So do you have a plan like when it is going to released approximately? – user10200598 Feb 20 '23 at 11:28
  • 2
    It is the official SCS library. It is not yet on Maven Central but you can use snapshot releases as described [here](https://docs.spring.io/spring-pulsar/docs/current-SNAPSHOT/reference/html/#appendix.non-ga-versions). – onobc Feb 20 '23 at 14:09
  • 2
    Until the ref docs are updated w/ the SCS info, you can use [this sample](https://github.com/spring-projects-experimental/spring-pulsar/tree/main/spring-pulsar-sample-apps/sample-pulsar-binder) and the [tests](https://github.com/spring-projects-experimental/spring-pulsar/blob/main/spring-pulsar-spring-cloud-stream-binder/src/test/java/org/springframework/pulsar/spring/cloud/stream/binder/PulsarBinderIntegrationTests.java). – onobc Feb 20 '23 at 14:09
  • `maven(url = "https://repo.spring.io/snapshot")` add this to your repositories and `implementation("org.springframework.pulsar:spring-pulsar-spring-cloud-stream-binder:0.1.1-SNAPSHOT")` as dependency. This will download the dependency from SNAPSHOT **spring.io** repo. – Noor Khan Mar 14 '23 at 13:29