My question concerns this project https://github.com/spring-cloud/spring-cloud-commons
Is there a way to add an instance to SimpleDiscoveryClient dynamically and programmaticaly during runtime instead of using application properties like here ?
Some ideas :
Thank you for your help.
Workaround : autowire SimpleDiscoveryProperties from SimpleDiscoveryClient to add an instance. Use ApplicationEventPublisher and send RefreshScopeRefreshedEvent to refresh Spring Cloud Gateway routes.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With