Search code examples
spring-bootapache-kafkaspring-kafka

Difference between spring-cloud-stream-binder-kafka and spring-cloud-starter-stream-kafka


What is the difference between these maven dependencies in a Spring Boot project -

spring-cloud-stream-binder-kafka and spring-cloud-starter-stream-kafka


Solution

  • "spring-cloud-starter-stream-kafka" is a spring-boot-starter for easy version compatibility.

    As you can see from the link, https://github.com/spring-cloud/spring-cloud-stream-binder-kafka/blob/v3.0.6.RELEASE/spring-cloud-starter-stream-kafka/pom.xml

    "spring-cloud-starter-stream-kafka" has only "spring-cloud-stream-binder-kafka" dependency info

    So, if you use a spring boot, it is more convenient to use spring-cloud-starter-stream-kafka