[go: nahoru, domu]

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

Increase performance for first store creation per account/service #10919

Merged
merged 2 commits into from
Jun 3, 2024

Conversation

dfangl
Copy link
Member
@dfangl dfangl commented May 29, 2024

Motivation

We currently create the boto3 session multiple times for checking available regions in the RegionBundle.
This code is called on the first store access per account for every service.

The changes in this PR should cache the result, and reduce the initial store instantiation time from around 200ms to around 50ms.
Due to the caching, the first request in additional accounts will be instantenous.

Changes

  • LocalStack should respond ~150ms (depending on the system) faster on the first store-accessing call for each service for a new account.

@dfangl dfangl added area: performance Make LocalStack go rocket-fast semver: patch Non-breaking changes which can be included in patch releases labels May 29, 2024
@dfangl dfangl self-assigned this May 29, 2024
Copy link
github-actions bot commented May 29, 2024

LocalStack Community integration with Pro

    2 files      2 suites   1h 44m 4s ⏱️
3 004 tests 2 695 ✅ 309 💤 0 ❌
3 006 runs  2 695 ✅ 311 💤 0 ❌

Results for commit 9c78996.

♻️ This comment has been updated with latest results.

Copy link
Member
@viren-nadkarni viren-nadkarni left a comment

Choose a reason for hiding this comment

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

Nice one 👍

@dfangl dfangl merged commit c79df2f into master Jun 3, 2024
30 checks passed
@dfangl dfangl deleted the performance/initial-store-init branch June 3, 2024 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: performance Make LocalStack go rocket-fast semver: patch Non-breaking changes which can be included in patch releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants