-
Notifications
You must be signed in to change notification settings - Fork 7
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
support reloading the config dynamically? #218
Comments
What is the use case for hot reloading As for reloading E.g. should the entire file be reread, and all subscriptions be re-established (and if that is the case, we must consider if the added complexity is worth it compared to just restarting the application with a new file). Alternatively, should we look for changes in the file, and only update those that have changed, removed those that are gone, and add new ones? It's starting to look like a non-trivial task. I'm not convinced SIGHUP is the appropriate way to trigger it either. We do have an admin api (behind basic http auth) - we could use that. |
I'd say local development, and production environments where the set of feeds is managed by/from another service. But yeah, it probably involves a lot of complexity. Your call if it's worth it!
Although its original purpose (and its purpose in interactive sessions) is definitely a different one, |
Just to reiterate that reloading of |
True, but if I (re)load a new config that contains a path to a different |
The point being, we won't support reloading of |
Does the same apply to |
I'm open to discussing support for reload |
Is this the use case? |
It would be helpful for development to reload both
application.properties
andfeedproviders.yml
upon developer request, e.g. usingSIGHUP
:https://en.wikipedia.org/wiki/Signal_(IPC)#SIGHUP
Edit: I think this would be useful in either a local development environment (where one often modifies the config/set of feeds), as well as in a production environment (where the set of feeds is managed by/from another service).
What do you think?
After some very naive research (I don't know the Spring ecosystem at all), I stumbled upon a StackOverflow answer that mentions that one should be careful when implementing this.
The text was updated successfully, but these errors were encountered: