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

feat: Catch auth session between requests #16

Merged
merged 1 commit into from
Jan 18, 2024
Merged

feat: Catch auth session between requests #16

merged 1 commit into from
Jan 18, 2024

Conversation

Allda
Copy link
Owner

@Allda Allda commented Jan 18, 2024

The auth module is now cached and reused for folloup registry requests.

Previously each request to registry initialized a new session which lead to reset the access token and need of establish secret session all over again. This is now fixed and leads to huge performance improvement when making multiple queries to a registry.

JIRA: ISV-4429

The auth module is now cached and reused for folloup registry requests.

Previously each request to registry initialized a new session which lead
to reset the access token and need of establish secret session all over
again. This is now fixed and leads to huge performance improvement when
making multiple queries to a registry.

JIRA: ISV-4429

Signed-off-by: Ales Raszka <araszka@redhat.com>
@Allda
Copy link
Owner Author

Allda commented Jan 18, 2024

Fixes #15

@Allda
Copy link
Owner Author

Allda commented Jan 18, 2024

@staticf0x @mantomas Please review.

Here are some stats for comparison when getting manifest for 400 tags:

Before:
Max: 5.92461895942688
Min: 1.3379034996032715
Avg: 1.5465453004837035
Total: 618.6181201934814
Count: 400

Afrer:
Max: 0.952294111251831
Min: 0.4583868980407715
Avg: 0.5130592679977417
Total: 205.22370719909668
Count: 400

@mantomas
Copy link

Makes sense to me, good speed-up 👍🏻

@staticf0x
Copy link
Contributor

LGTM, thank you

@Allda Allda merged commit 1a30ff9 into main Jan 18, 2024
8 checks passed
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