John993
John993

Reputation: 11

Using Kafka instead of spring cloud bus

Let me explain my problem using an example,

When property file get changed, to make it immediately effect to the all running instances, we can use spring-cloud-bus,

<dependency>
        <groupId>org.springframework.cloud</groupId>
        <artifactId>spring-cloud-starter-bus-amqp</artifactId>
    </dependency>

and use postman tool to refresh all instances of "notification-service" at once.

The thing i want to know is are there any way to do this using kafka instead of spring cloud bus?

Upvotes: 1

Views: 999

Answers (1)

OneCricketeer
OneCricketeer

Reputation: 192023

Maybe you're looking for this?

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

And it's called Spring Cloud Stream

Upvotes: 1

Related Questions