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

enable caching at the top level DefaultAzureCredential #1491

Merged

Conversation

demoray
Copy link
Contributor

@demoray demoray commented Dec 5, 2023

Right now, the underlying layers exposed by DefaultAzureCredential include caching. However, in common use, if the user is using az-cli, it will require environment credential/IMDS to fail for every request before moving onto az-cli.

By caching at the DefaultAzureCredential layer and the underlying layer, most repeated calls will hit the first layer cache quickly.

Right now, the underlying layers exposed by DefaultAzureCredential
include caching.  However, in common use, if the user is using az-cli,
it will require environment credential/IMDS to fail for every request
before moving onto az-cli.

By caching at the DefaultAzureCredential layer and the underlying layer,
most repeated calls will hit the first layer cache quickly.
Copy link
Member

@cataggar cataggar left a comment

Choose a reason for hiding this comment

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

This is true. I would also be interested in failing faster for the other credentials. Credentials that do not fail fast, may be should not be enabled by default. See #1495.

@demoray demoray merged commit 8ab1801 into Azure:main Dec 6, 2023
19 checks passed
@demoray demoray deleted the enable-top-level-caching-for-default-credentials branch December 6, 2023 13:51
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