Spring Cloud Config Server + RabbitMQ

懵懂的女人 提交于 2019-12-10 14:24:32

问题


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?


回答1:


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.

  1. GitHub Project
  2. Documentation

Follow the instructions in the links above you're good to go.



来源:https://stackoverflow.com/questions/37873433/spring-cloud-config-server-rabbitmq

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!