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

Cached configuration source with thread safety #216

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Cached configuration source with thread safety #216

wants to merge 1 commit into from

Conversation

tdmasta
Copy link

@tdmasta tdmasta commented Apr 27, 2017

Hi,
each access to a property read the configuration file, so with many access in many requests, the access time can be important. More, if configuration file changes while a thread access to a property, next access in same thread can produce incoherence.
It's for this reason we created CachedConfigurationSource, using AtomicReference to contains properties and ensure thread safety.
I hope that will be useful.
Denis

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

Successfully merging this pull request may close these issues.

None yet

2 participants