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

Cache TAA by wallet name #2676

Merged
merged 3 commits into from
Dec 18, 2023
Merged

Conversation

jamshale
Copy link
Contributor

@jamshale jamshale commented Dec 15, 2023

The TAA acceptance was being cached at pool level. This caused problems in traction if the tenant changed pods and also TAA acceptance between different tenants in multi-tenant mode.

My understanding is limited in this area.
I thought maybe I could cache at a wallet level, but I couldn't find a way to do this currently or any other examples in the code base. So, I inject the cache at profile level and then have a different cache key per wallet/tenant.

This will use more cache memory per tenant. Could possibly store the cache for less time.

@jamshale jamshale requested a review from esune December 15, 2023 22:41
@jamshale jamshale self-assigned this Dec 16, 2023
@jamshale jamshale marked this pull request as ready for review December 18, 2023 16:10
@jamshale jamshale marked this pull request as draft December 18, 2023 16:24
@jamshale jamshale marked this pull request as ready for review December 18, 2023 16:54
Copy link
Member

@esune esune left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks @jamshale!

Copy link

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

Copy link
Contributor

@swcurran swcurran left a comment

Choose a reason for hiding this comment

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

LGTM — and more importantly, @esune .

@swcurran swcurran enabled auto-merge December 18, 2023 18:12
@swcurran swcurran merged commit 94b1dde into openwallet-foundation:main Dec 18, 2023
7 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.

[Bug] TAA acceptance method cached globally for multi-tenant deployments
3 participants