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

Implement a request cache #137

Closed
fengelniederhammer opened this issue Feb 22, 2023 · 4 comments · Fixed by #681
Closed

Implement a request cache #137

fengelniederhammer opened this issue Feb 22, 2023 · 4 comments · Fixed by #681
Assignees
Labels
LAPIS Tasks/PR related to LAPIS

Comments

@fengelniederhammer
Copy link
Contributor

fengelniederhammer commented Feb 22, 2023

Cache requests to reduce load on SILO.

Details:

  • the cache should be invoked for:
    • /nucleotideMutations
    • /aminoAcidMutations
    • /nucleotideInsertions
    • /aminoAcidInsertions
  • other routes should be ignored
  • when a new data version is available the cache should be invalidated
@fengelniederhammer fengelniederhammer added epic Collection of multiple issues for a larger feature LAPIS Tasks/PR related to LAPIS labels Feb 22, 2023
@JonasKellerer
Copy link
Contributor

Do we still plan on doing this? It seems, that SILO can handle large number of requests. Or do we keep this open, until we see the results from the production server?

@chaoran-chen
Copy link
Member

Yes, let's keep it for a while and then analyze the response times.

@JonasKellerer
Copy link
Contributor

As discussed, we will now introduce a request cache, similar to v1.

This is necessary, due to large load on SILO (mainly on the collections page.) See GenSpectrum/LAPIS-SILO#298

@JonasKellerer
Copy link
Contributor

I updated the description.

@JonasKellerer JonasKellerer removed the epic Collection of multiple issues for a larger feature label Feb 29, 2024
fengelniederhammer added a commit that referenced this issue Mar 1, 2024
Also make sure to invalidate the cache when SILO has a new data version
fengelniederhammer added a commit that referenced this issue Mar 1, 2024
Also make sure to invalidate the cache when SILO has a new data version
fengelniederhammer added a commit that referenced this issue Mar 1, 2024
Also make sure to invalidate the cache when SILO has a new data version
fengelniederhammer added a commit that referenced this issue Mar 4, 2024
Also make sure to invalidate the cache when SILO has a new data version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LAPIS Tasks/PR related to LAPIS
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants