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

DB query coalescing - block other requests while refreshing the cache #1396

Merged
merged 3 commits into from
Jan 20, 2025

Conversation

mjh1
Copy link
Contributor

@mjh1 mjh1 commented Jan 17, 2025

I found that even with caching there were still requests to the DB taking 1+ seconds, this would happen when a number of concurrent requests hit a cache expiry. So instead of letting these all make a request to the DB, allow one through while making the other wait behind.

@mjh1 mjh1 requested a review from leszko January 17, 2025 18:58
@mjh1 mjh1 requested a review from gioelecerati January 18, 2025 09:03
@mjh1 mjh1 merged commit b1432e7 into main Jan 20, 2025
11 checks passed
@mjh1 mjh1 deleted the mh/catabalancer branch January 20, 2025 15:07
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.

2 participants