I have a spring cloud configserver in place and we are using s3 as a version control.
I have activemq for sending topics which will later be consumed by the microservices. Now we need to refresh the configuration of microservices depending upon the value of the topic which we send in activemq.
Lets say we only need to refresh the configs of the microservice only when we see a value 'REFRESH' in the topic, otherwise no change.
Also we do nt want to call the actuator /refresh ,/monitor or /busrefresh endpoint to refresh the configs because we need to reload based on the topic value.
Refreshing configurations of microservices based on messaging topic
475 Views Asked by Shivam At
1
There are 1 best solutions below
Related Questions in JAVA
- Add image to JCheckBoxMenuItem
- How to access invisible Unordered List element with Selenium WebDriver using Java
- Inheritance in Java, apparent type vs actual type
- Java catch the ball Game
- Access objects variable & method by name
- GridBagLayout is displaying JTextField and JTextArea as short, vertical lines
- Perform a task each interval
- Compound classes stored in an array are not accessible in selenium java
- How to avoid concurrent access to a resource?
- Why does processing goes slower on implementing try catch block in java?
- Redirect inside java interceptor
- Push toolbar content below statusbar
- Animation in Java on top of JPanel
- JPA - How to query with a LIKE operator in combination with an AttributeConverter
- Java Assign a Value to an array cell
Related Questions in SPRING-BOOT
- Timing Issue with Spring Boot Annotation Configuration
- LightAdmin - Customise parsing DateTime with app timezone
- Creating distribution with repackaged spring boot jar using gradle application plugin
- Spring Boot MVC non-role based security
- Add JVM args to spring boot application
- The method and() is undefined for the type HttpSecurity
- swagger ui not working for swagger version 2
- Spring IO Platform 2.0 - Themes/Changes?
- JPA findDistinctPropertyBy magic method doesn't work as expected when using spring-boot-starter-jpa
- Spring boot check external service status on boot
- Running a specific spring batch job amongst several jobs contained withing a spring boot fat jar
- Adding security to rest api service built with Spring Boot app
- Spring Redirecting from Http to Https Breaks Rest Controller Test
- Service not starting using Spring-boot during integration tests
- Spring Boot Actuator Health Returning DOWN
Related Questions in SPRING-CLOUD-CONFIG
- Spring cloud config server - how to add custom PropertySource visible in findOne() method of EnvironmentEncryptorEnvironmentRepository
- encryption in spring-cloud-config-server
- How to create custom channel binder for publishing RefreshRemoteApplicationEvent?
- Seeking thorough documentation on the spring.cloud.config properties group for client applications
- (Spring cloud config server) Loading configuration other than pattern {application}/{profile}
- Multiple Requests at Config Server after Restart
- Factory method 'transactionAdvisor' threw exception; nested exception is java.lang.NullPointerException
- updating Beans marked as RefreshScope
- Custom property loader with Spring Cloud Config
- Spring Cloud Bus, how to specify multiple destination in /bus/refresh?destination=?
- Spring Cloud Client Config with placeholders
- No suitable cloud connector found while trying to use local spring cloud connector/local_configuration_connector
- @RefreshScope annotated Bean registered through BeanDefinitionRegistryPostProcessor not getting refreshed on Cloud Config changes
- SpringCloudConfig When I use these annotations @RefreshScope @ConfigurationProperties ,I was in trouble
- @RefreshScope alternative for entire application
Related Questions in SPRING-CLOUD-CONFIG-SERVER
- Spring config server renew vault token auth
- Spring cloud config with database backend
- Load properties from application.properties in Spring Cloud Config until refreshed
- Spring Config Server with Spring Boot Properties
- How to store and access html files from spring cloud config server?
- Is it possible to download a folder/directory using spring-cloud-config server's end points?
- Spring Cloud Config does not override program arguments
- Unable to set Vault host in Spring Boot Config Server
- Spring Cloud Config: Which searchPaths for profiles within subdirectories
- Java Spring cloud config client and config server. custom link to actuator endpoint
- spring cloud config server not loading file
- Configuring Health Indicators for Spring Cloud Config Server (4.0.2)
- If Spring Cloud Config server is down, Can the client microservice read properties from local path
- Spring Boot Config Server returns empty for property Sources
- Connection Issue between Spring API and Spring Cloud Config Server in Docker Containers on the Same Network
Related Questions in SPRING-CLOUD-CONFIG-CLIENT
- Spring Cloud Config does not override program arguments
- spring cloud config server not loading file
- Config-server is not fetching the department-service.properties file from GitHub
- spring-config-client received multiple refresh event when ever there is a change in consumer-group-name
- Consuming Spring Cloud Config Server configuration through a NestJS application with encrypted data
- Refresh server.port of a Spring Cloud Config Client dynamically via /actuator/refresh
- How to use application.propeties in spring cloud config client application?
- Spring cloud config - override profile locally failed
- Springboot Config server client returns status code: -1
- Getting request Permission denied: no further information on Service Discovery with Spring-Cloud-Config
- Cloud config starts throwing errors about missing repository
- Spring Cloud Config Server using properties from server in actual application
- Spring cloud config OAuth2.0 protected server client authentication
- Spring Cloud config server - Sharing properties (for Group of related services)
- Refreshing configurations of microservices based on messaging topic
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
After few retries i came up the solution and it is working as expected. what we need to do first is to add actuators dependency.
Now in the application.properties we need to enable below property so that actuator can perform the restart.
Now finally we need to call the restart method from RestartEndpoint class so that it can restart our application.
Please give suggestion if solution require any improvement.