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

Address issue #1 : Cache the container to avoid object creation #3

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

Conversation

YohanSciubukgian
Copy link
Owner

@YohanSciubukgian YohanSciubukgian commented Apr 3, 2020

The AzureCosmosDbV3Connector should be registered as a Singleton on a real project usage.
The Dictionary will do a cache-aside on the Container object to avoid creating the object for each operation.

@YohanSciubukgian YohanSciubukgian self-assigned this Apr 3, 2020
@bartelink
Copy link

This should use a ConcurrentDictionary (and using GetValueElseAdd will make the code cleaner)

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.

2 participants