[英]Spring Cloud Config Server + RabbitMQ
I created spring cloud config server and client and they work as expected. 我创建了spring cloud配置服务器和客户端,它们按预期工作。 I have added @RefreshScope to my client and I am able to see the new properties getting fetched after hitting /refresh endpoint.
我已将@RefreshScope添加到我的客户端,并且我能够看到在命中/刷新端点后获取新属性。 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.
但有人告诉我,当我在云代工厂环境中部署它时,我必须将它与RabbitMQ集成,以便所有实例都能收到刷新消息。 Is it possible to point me to a link which explains this problem and solution in detail?
是否有可能指向一个解释此问题和解决方案的链接?
This is what you need in order to propagate configuration changes to all of your servers via a message broker such as RabbitMQ. 这是您通过消息代理(如RabbitMQ)将配置更改传播到所有服务器所需的内容。
Follow the instructions in the links above you're good to go. 按照上面链接中的说明,你很高兴。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.