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

config: Implement preloading of config settings depending on sources #1133

Open
bt-justtrack opened this issue Jul 24, 2024 · 1 comment
Open
Labels
enhancement New feature or request refinement

Comments

@bt-justtrack
Copy link
Contributor

The Idea is to already load the config from relevant settings into memory such that we dont need to eg resolve env vars on demand once we need them. This also ties in with #1132 . It is up for discussion on what env vars eg we would want to preload and how to technically solve that (eg. with a prefix, or just all env vars ?).

@bt-justtrack bt-justtrack added enhancement New feature or request refinement labels Jul 24, 2024
@bt-justtrack
Copy link
Contributor Author

Plan: have a provider interface allowing resolution of a config key into a value.
When requesting a value from config the providers are asked through a prioritized list if they have a value for a given key.
If they do we use that value, if not we descend further down in priority.
Providers can optionally also implement another interface allowing them to track usage for settings keys.
Here you can ask them to return the list of used and unused settings keys.
For eg the env var provider this usage tracking could be tracking all actually requested env vars and returning as unused the set of all env var keys - the set of requested keys.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request refinement
Projects
None yet
Development

No branches or pull requests

1 participant