Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto refreshing the properties on client through configuration #138

Closed
thefalconfeat opened this issue Apr 28, 2015 · 8 comments
Closed
Labels

Comments

@thefalconfeat
Copy link

its not very clear for me going through the documentation, but we have a need to configure certain set of application to get refreshed(properties) every 10 min and its becomes hazy to trigger /refresh every 10 min manually. Is it something that we can configure on the client application, if so how do we do it..?

@dsyer dsyer added the question label Apr 29, 2015
@dsyer
Copy link
Contributor

dsyer commented Apr 29, 2015

You can easily @EnableScheduled and add a bean that calls the RefreshEndpoint.refresh() method every 10min (or whatever schedule you like of course). @EnableScheduled is a Spring core feature. That use case is even mentioned in the user guide I believe.

@dsyer dsyer closed this as completed Apr 29, 2015
@thefalconfeat
Copy link
Author

we are using cloudfoundry to deploy our applications, and it would be hard to get the exact endpoint of all the instances, especially when the application is running with multiple instances.

@spencergibb
Copy link
Member

@thefalconfeat he's not suggesting you make a http call, but use @EnableScheduled IN your application to call RefreshEndpoint.refresh() directly in java code.

@thefalconfeat
Copy link
Author

thanks, this is helpful

@jmnarloch
Copy link

Hi, I was wondering if you could consider at least implementing a kind of event publishing within the config server something similar to: jmnarloch@c1a0035#diff-14f7a9bbd398562fdfd12ce9f6619d7cR179

With at least such API it would be trivial for anyone to implement on top of that selective push notifications/refreshes to Eureka/Ribbon configured nodes in it's application.

@spencergibb
Copy link
Member

@jmnarloch you should open a new issue rather than commenting on one that is closed.

@spencergibb
Copy link
Member

@jmnarloch please disregard my comment, I see you opened a new issue :-)

@jmnarloch
Copy link

Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants