Reputation: 16992
I created spring cloud config server and client and they work as expected. I have added @RefreshScope to my client and I am able to see the new properties getting fetched after hitting /refresh endpoint. But I was told that when I deploy it in cloud foundry environment , I must integrate it with RabbitMQ in order for all the instances to receive the refresh message. Is it possible to point me to a link which explains this problem and solution in detail?
Upvotes: 5
Views: 4215
Reputation: 1
So I assume your application runs as single instance configuration. In that case, you don't need spring cloud bus based refresh and just hitting the {app}/actuator/refresh would be enough. Only if you scale out your app, we would need such setup with a queue like RabbitMQ or kakfa.
Upvotes: 0
Reputation: 7031
This is what you need in order to propagate configuration changes to all of your servers via a message broker such as RabbitMQ.
Follow the instructions in the links above you're good to go.
Upvotes: 4