Spring Cloud Config Server + RabbitMQ [英] Spring Cloud Config Server + RabbitMQ
问题描述
我创建了spring cloud config服务器和客户端,它们按预期工作。我已经将@RefreshScope添加到我的客户端,并且可以看到在击中/ refresh端点后获取了新属性。但是有人告诉我,当我在Cloud Foundry环境中部署它时,必须将它与RabbitMQ集成在一起,以便所有实例都可以接收刷新消息。是否可以将我指向指向详细解释此问题和解决方案的链接?
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?
推荐答案
Spring Cloud Bus
这是您需要的订单通过消息代理(例如RabbitMQ)将配置更改传播到所有服务器。
Spring Cloud Bus
This is what you need in order to propagate configuration changes to all of your servers via a message broker such as RabbitMQ.
- GitHub Project
- Documentation
请按照上面链接中的说明进行操作。
Follow the instructions in the links above you're good to go.
这篇关于Spring Cloud Config Server + RabbitMQ的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!