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

CachingClientFactory: lock by client cache key #716

Merged
merged 3 commits into from May 15, 2024

Conversation

benashz
Copy link
Collaborator

@benashz benashz commented Apr 29, 2024

Previously all calls to Get() were serialized using a single lock. This approach does not scale as the number of Vault client grows. With this change locking is done by ClientCacheKey, thereby reducing the overall contention for Vault clients.

Previously all calls to Get() were serialized using a single lock. This
approach does not scale as the number of Vault client grows. With this
change locking is done by ClientCacheKey, thereby reducing the overall
contention for Vault clients.
@benashz benashz requested a review from a team as a code owner April 29, 2024 21:44
Copy link
Contributor

@thyton thyton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@benashz benashz requested a review from tvoran April 30, 2024 12:58
internal/vault/client_factory.go Outdated Show resolved Hide resolved
internal/vault/client_factory.go Outdated Show resolved Hide resolved
internal/vault/client_factory.go Outdated Show resolved Hide resolved
internal/vault/client_factory.go Show resolved Hide resolved
@benashz benashz merged commit 3ad6d40 into main May 15, 2024
43 checks passed
@benashz benashz deleted the VAULT-26575/client-factory-lock-by-cacheKey branch May 15, 2024 13:15
@benashz benashz added this to the v0.7.0 milestone May 15, 2024
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

3 participants