-
Notifications
You must be signed in to change notification settings - Fork 8
Support etcd as configuration source and other improvements #27
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
Conversation
|
Not going to pretend I've looked at all of this yet but could this have been implemented similar to the |
|
Hmm. Not sure what the config-remote extension is all about, but if you're asking whether we could have split the If lots of people feel strongly that it should be a separate extension library, then we can split it out. |
|
I believe config-remote was added so config values could be pulled from a file served by nginx. My understanding is that it ended up as an extension since it didn't completely fit with being a general config library. I don't feel strongly about where etcd should belong. It was more of a question based off just a quick glance through. I didn't have a great idea of what all was added. Does this basically make the tag |
|
I like the change of getting rid of |
|
@jakemcc: It adds the #config/etcd reader tag that can be used in edn files (or #config/env with #config/edn, etc). It also allows etcd to be a "source" for configuration instead of a config.edn file. Those are the two major things anyway. |
src/outpace/config.clj
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Multiple derefing like this is not thread safe. The value of the atom could be changed between your derefs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch. :)
|
There's a lot going on here including several breaking changes:
I'd prefer to see this broken up into several PRs with smaller change sets so we can discuss each change separately. |
|
Discussed with @pjstadig and we've decided to close this for now. |
We suggest that this should become version 1.0.0.