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

DM-47716: Move token cache transaction management #1157

Merged
merged 1 commit into from
Nov 21, 2024
Merged

Conversation

rra
Copy link
Member

@rra rra commented Nov 20, 2024

The pattern of doing database transaction management within the handlers meant that a database transaction was created in the hot path of ingress auth requests if delegated tokens were requested. Move the transaction management into the token cache service so that the transaction is only created if database activity is required.

@rra rra force-pushed the tickets/DM-47716 branch from 63c97e1 to 7b8c294 Compare November 20, 2024 22:56
The pattern of doing database transaction management within the
handlers meant that a database transaction was created in the hot
path of ingress auth requests if delegated tokens were requested.
Move the transaction management into the token cache service so
that the transaction is only created if database activity is
required.
@rra rra force-pushed the tickets/DM-47716 branch from 7b8c294 to 45d623d Compare November 21, 2024 21:48
@rra rra enabled auto-merge November 21, 2024 21:48
@rra rra merged commit 2dc1b81 into main Nov 21, 2024
5 checks passed
@rra rra deleted the tickets/DM-47716 branch November 21, 2024 21:56
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.

1 participant