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

Improve caching strategy to avoid outages at peaks #1061

Open
Mrgaton opened this issue Jan 29, 2025 · 2 comments
Open

Improve caching strategy to avoid outages at peaks #1061

Mrgaton opened this issue Jan 29, 2025 · 2 comments

Comments

@Mrgaton
Copy link

Mrgaton commented Jan 29, 2025

I dont know if already implemented but a cache for a given uri to expire when the next weather update comes would be great to prevent the use of whether queries

@chubin
Copy link
Owner

chubin commented Jan 30, 2025

There are of course already several levels of caching. The caching policy is not aggressive enough though to handle the peak loads which occur from time to time. We should probably make it adaptive, depending on the current load level, to avoid outages similar to that from yesterday.

@chubin chubin changed the title Add a cache to prevent too much queries Improve caching strategy to avoid outages at peaks Jan 30, 2025
@Mrgaton
Copy link
Author

Mrgaton commented Jan 30, 2025

You explained better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants