Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

Auto Refresh Config Changes using Spring Cloud Bus

Pragya Keshap answered on February 10, 2023 Popularity 2/10 Helpfulness 1/10

Contents


More Related Answers

  • How to reload my changes on Spring Boot without having to restart server?
  • spring cloud config server authentication
  • springBoot Register a Custom Auto-Configuration
  • Centralized Configurations using Spring Cloud Config Server
  • bus refresh spring boot
  • Creating the configuration producer Spring Cloud Config Server
  • Trying out the Spring Cloud Configuration server

  • Auto Refresh Config Changes using Spring Cloud Bus

    0

    Then the Spring Cloud Config Server will retrieve the latest configuration property changes from the backend systems and publish the refresh event to the Spring Cloud Bus. This refresh event is published with Spring Cloud Stream.

    All the distributed application services will connect to Spring Cloud Bus and will listen for the refresh event published by the Spring Cloud Config Server. The Spring Cloud Bus will broadcast the refresh event across all connected application services. Therefore it is guaranteed that the the published refresh event will be received by every distributed service (Config Client) that is connected to the Spring Cloud Bus.

    Every Config Client (application service) has the Spring Boot Actuator in its classpath. Therefore all the application services can accept and handle the refresh event with no issue. Then all the beans annotated with @RefreshScope will be refreshed and the properties will be re-fetched. That means the Config Client will communicate with Config Server to retrieve the latest configuration properties for the related to the annotated beans.

    https://medium.com/swlh/spring-cloud-config-bus-auto-refresh-properties-for-clients-d18fa4c036cb

    Popularity 2/10 Helpfulness 1/10 Language whatever
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Feb 10 2023
    Pragya Keshap
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.